updater-disable-auto-update.patch 1.2 KB

123456789101112131415161718192021222324252627
  1. From f97af1715c10c5926169ff317ca7c91f1d073af9 Mon Sep 17 00:00:00 2001
  2. From: Jan Engelhardt <jengelh@inai.de>
  3. Date: Fri, 13 Feb 2015 00:59:04 +0100
  4. Subject: [PATCH 39/66] updater: disable auto-update
  5. As per http://www.chromium.org/administrators/turning-off-auto-updates ,
  6. the auto update function is decidedly disabled on Linux, i.e.
  7. the following patch is for Windows and MacOS.
  8. For Windows, all we need is to build without -DGOOGLE_CHROME_BUILD (cf.
  9. chrome/installer/util/google_update_settings.cc), which may already be
  10. the case anyway, since we are based off Chromium, not Chrome.
  11. ---
  12. chrome/browser/app_controller_mac.mm | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. --- a/chrome/browser/app_controller_mac.mm
  15. +++ b/chrome/browser/app_controller_mac.mm
  16. @@ -670,7 +670,7 @@ static base::mac::ScopedObjCClassSwizzle
  17. CFStringRef checkInterval = CFSTR("checkInterval");
  18. CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
  19. if (!plist) {
  20. - const float fiveHoursInSeconds = 5.0 * 60.0 * 60.0;
  21. + const float fiveHoursInSeconds = 0.0;
  22. NSNumber* value = [NSNumber numberWithFloat:fiveHoursInSeconds];
  23. CFPreferencesSetAppValue(checkInterval, value, app);
  24. CFPreferencesAppSynchronize(app);