summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 17:15:37 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 17:15:37 +0000
commit4799b2614d03ac69635c639a0936e6f1a352cd9d (patch)
treedc2c4db49f93a9ca1453ec1864a4341558b90575
parent916f718379993bab5cd5114ee4763097dcfd2053 (diff)
downloadchromium_src-4799b2614d03ac69635c639a0936e6f1a352cd9d.zip
chromium_src-4799b2614d03ac69635c639a0936e6f1a352cd9d.tar.gz
chromium_src-4799b2614d03ac69635c639a0936e6f1a352cd9d.tar.bz2
Drop the language tag from the UA string. This parallels https://bugs.webkit.org/show_bug.cgi?id=54560 and also matches a change in Firefox 4.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6541076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75755 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/glue/user_agent.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc
index afd1c83..fc4aa6c 100644
--- a/webkit/glue/user_agent.cc
+++ b/webkit/glue/user_agent.cc
@@ -99,9 +99,6 @@ void BuildUserAgent(bool mimic_windows, std::string* result) {
const char kUserAgentSecurity = 'U'; // "US" strength encryption
- // TODO(port): figure out correct locale
- const char kUserAgentLocale[] = "en-US";
-
// Get the product name and version, and replace Safari's Version/X string
// with it. This is done to expose our product name in a manner that is
// maximally compatible with Safari, we hope!!
@@ -110,12 +107,11 @@ void BuildUserAgent(bool mimic_windows, std::string* result) {
// Derived from Safari's UA string.
base::StringAppendF(
result,
- "Mozilla/5.0 (%s; %c; %s; %s) AppleWebKit/%d.%d"
+ "Mozilla/5.0 (%s; %c; %s) AppleWebKit/%d.%d"
" (KHTML, like Gecko) %s Safari/%d.%d",
mimic_windows ? "Windows" : kUserAgentPlatform,
kUserAgentSecurity,
((mimic_windows ? "Windows " : "") + BuildOSCpuInfo()).c_str(),
- kUserAgentLocale,
WEBKIT_VERSION_MAJOR,
WEBKIT_VERSION_MINOR,
product.c_str(),