summaryrefslogtreecommitdiffstats
path: root/android_webview/common
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/common')
-rw-r--r--android_webview/common/aw_content_client.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/android_webview/common/aw_content_client.cc b/android_webview/common/aw_content_client.cc
index fe4d8bb..30ef6c2 100644
--- a/android_webview/common/aw_content_client.cc
+++ b/android_webview/common/aw_content_client.cc
@@ -15,12 +15,15 @@
namespace android_webview {
std::string AwContentClient::GetProduct() const {
- // "Version/4.0" had been hardcoded in the legacy WebView.
- return std::string("Version/4.0");
+ // "Chrome/XX.0.0.0" identifies that this WebView is derived from the
+ // corresponding Chromium version XX.
+ // TODO(torne): Use chrome/VERSION file. See http://crbug.com/297522
+ return "Chrome/33.0.0.0";
}
std::string AwContentClient::GetUserAgent() const {
- std::string product = GetProduct();
+ // "Version/4.0" had been hardcoded in the legacy WebView.
+ std::string product = "Version/4.0 " + GetProduct();
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseMobileUserAgent)) {
product += " Mobile";