diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-08 23:21:18 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-08 23:21:18 +0000 |
commit | 6142debab3eab9d0007ef32ed13a24a585a86b45 (patch) | |
tree | 0fed4d6d40a6114e055397b0cbc883dd52c14fe4 /chrome/browser/safe_browsing | |
parent | 89b07797e8690a642eabbb15238417ed72dc928a (diff) | |
download | chromium_src-6142debab3eab9d0007ef32ed13a24a585a86b45.zip chromium_src-6142debab3eab9d0007ef32ed13a24a585a86b45.tar.gz chromium_src-6142debab3eab9d0007ef32ed13a24a585a86b45.tar.bz2 |
Add a command line switch "--disable-background-networking", to be used in
benchmarking when unexpected background networking can cause undesired vairance.
The following systems are disabled via this flag:
- IntranetRedirectDetector (requests randomURLs 2-5s after startup)
- GoogleUrlTracker (searchdomaincheck)
- SafeBrowsing updater
- Extension updater
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3312014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_service.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc index d51f194..5f2d663 100644 --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc @@ -364,7 +364,9 @@ void SafeBrowsingService::OnIOInitialize( #endif #endif CommandLine* cmdline = CommandLine::ForCurrentProcess(); - bool disable_auto_update = cmdline->HasSwitch(switches::kSbDisableAutoUpdate); + bool disable_auto_update = + cmdline->HasSwitch(switches::kSbDisableAutoUpdate) || + cmdline->HasSwitch(switches::kDisableBackgroundNetworking); std::string info_url_prefix = cmdline->HasSwitch(switches::kSbInfoURLPrefix) ? cmdline->GetSwitchValueASCII(switches::kSbInfoURLPrefix) : |