diff options
-rw-r--r-- | chrome/browser/upgrade_detector.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/upgrade_detector.cc b/chrome/browser/upgrade_detector.cc index b503e89..8d8d60d 100644 --- a/chrome/browser/upgrade_detector.cc +++ b/chrome/browser/upgrade_detector.cc @@ -149,6 +149,9 @@ void UpgradeDetector::RegisterPrefs(PrefService* prefs) { UpgradeDetector::UpgradeDetector() : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)), notify_upgrade_(false) { + CommandLine command_line(*CommandLine::ForCurrentProcess()); + if (command_line.HasSwitch(switches::kDisableBackgroundNetworking)) + return; // Windows: only enable upgrade notifications for official builds. // Mac: only enable them if the updater (Keystone) is present. // Linux (and other POSIX): always enable regardless of branding. |