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

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

Issue 337803006: Modify safe-browsing to use mobile-specific client strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3484be618e7f4f3e19da3534d637a8a20820a84d..e603f17221c384880679ad29cd69c5a681c01a13 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -380,7 +380,15 @@ SafeBrowsingProtocolConfig SafeBrowsingService::GetProtocolConfig() const {
#else
config.client_name = "chromium";
#endif
+
+ // Mark client string to allow server to differentiate mobile.
+#if defined(OS_ANDROID)
+ config.client_name.append("-a");
+#elif defined(OS_IOS)
+ config.client_name.append("-i");
#endif
+
+#endif // defined(OS_WIN)
CommandLine* cmdline = CommandLine::ForCurrentProcess();
config.disable_auto_update =
cmdline->HasSwitch(switches::kSbDisableAutoUpdate) ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698