Index: chrome/browser/safe_browsing/safe_browsing_service.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc |
index 7fa205da8044e89e4641ac63b8628133e5021fca..d7d78da51e50366e74c6caee614caf15de5e3d1b 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc |
@@ -484,8 +484,11 @@ V4ProtocolConfig |
SafeBrowsingService::GetV4ProtocolConfig() const { |
V4ProtocolConfig config; |
config.client_name = GetProtocolConfigClientName(); |
- config.version = SafeBrowsingProtocolManagerHelper::Version(); |
+ base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess(); |
+ config.disable_auto_update = |
+ cmdline->HasSwitch(switches::kDisableBackgroundNetworking); |
config.key_param = google_apis::GetAPIKey();; |
+ config.version = SafeBrowsingProtocolManagerHelper::Version(); |
return config; |
} |