Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1460)

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698