Chromium Code Reviews| Index: chrome/browser/upgrade_detector.cc |
| =================================================================== |
| --- chrome/browser/upgrade_detector.cc (revision 80449) |
| +++ chrome/browser/upgrade_detector.cc (working copy) |
| @@ -149,6 +149,9 @@ |
| 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; |
|
Mike Belshe
2011/04/06 18:32:53
This is great - lets put this in a separate CL.
|
| // 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. |