diff options
author | Ben Murdoch <benm@google.com> | 2012-02-14 16:16:29 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2012-02-16 13:41:38 +0000 |
commit | 4f3a742b60841cf402cd4192bd864afb7306356b (patch) | |
tree | c3120824726c59321933365d001f5d6dd4b65d01 /chrome | |
parent | 940e47a8a93a8720ca55c0966689f4cdd4bf5b4e (diff) | |
download | external_chromium-4f3a742b60841cf402cd4192bd864afb7306356b.zip external_chromium-4f3a742b60841cf402cd4192bd864afb7306356b.tar.gz external_chromium-4f3a742b60841cf402cd4192bd864afb7306356b.tar.bz2 |
Append client parameter to AutoFill server requests.
Bug: 4515820
Change-Id: I32fe0918c0d9f80f1930a481e47c3e7ce285c329
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/autofill/autofill_download.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_download.cc b/chrome/browser/autofill/autofill_download.cc index 295aef0..e9f49b3 100644 --- a/chrome/browser/autofill/autofill_download.cc +++ b/chrome/browser/autofill/autofill_download.cc @@ -30,6 +30,9 @@ #define AUTO_FILL_UPLOAD_SERVER_REQUEST_URL \ "http://toolbarqueries.clients.google.com:80/tbproxy/af/upload" #define AUTO_FILL_QUERY_SERVER_NAME_START_IN_HEADER "GFE/" +#ifdef ANDROID +#define ANDROID_AUTOFILL_CLIENT_PARAM "?client=AndroidBrowser" +#endif namespace { const size_t kMaxFormCacheSize = 16; @@ -225,6 +228,8 @@ bool AutofillDownloadManager::StartRequest( request_url = android::AutofillRequestUrl::GetQueryUrl(); if (request_url.empty()) return false; + request_url += ANDROID_AUTOFILL_CLIENT_PARAM; + } #endif |