summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch
blob: 3283795a5058832d16550a3dda8d67ad27a92512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From f97af1715c10c5926169ff317ca7c91f1d073af9 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Fri, 13 Feb 2015 00:59:04 +0100
Subject: [PATCH 39/66] updater: disable auto-update

As per http://www.chromium.org/administrators/turning-off-auto-updates ,
the auto update function is decidedly disabled on Linux, i.e.
the following patch is for Windows and MacOS.

For Windows, all we need is to build without -DGOOGLE_CHROME_BUILD (cf.
chrome/installer/util/google_update_settings.cc), which may already be
the case anyway, since we are based off Chromium, not Chrome.
---
 chrome/browser/app_controller_mac.mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -867,7 +867,7 @@ static base::mac::ScopedObjCClassSwizzle
   CFStringRef checkInterval = CFSTR("checkInterval");
   CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
   if (!plist) {
-    const float fiveHoursInSeconds = 5.0 * 60.0 * 60.0;
+    const float fiveHoursInSeconds = 0.0;
     NSNumber* value = [NSNumber numberWithFloat:fiveHoursInSeconds];
     CFPreferencesSetAppValue(checkInterval, value, app);
     CFPreferencesAppSynchronize(app);