Commit 0624005f authored by shess@chromium.org's avatar shess@chromium.org

Modify safe-browsing to use mobile-specific client strings.

Identify Android vs iOS requests so that server can adjust respond
differently to mobile hits than desktop.

BUG=none

Review URL: https://codereview.chromium.org/337803006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277904 0039d316-1c4b-4281-b951-d872f2087c98
parent 818bcf44
......@@ -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) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment