From 6142debab3eab9d0007ef32ed13a24a585a86b45 Mon Sep 17 00:00:00 2001 From: "mbelshe@chromium.org" Date: Wed, 8 Sep 2010 23:21:18 +0000 Subject: 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 --- chrome/browser/safe_browsing/safe_browsing_service.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/browser/safe_browsing') 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) : -- cgit v1.1