summaryrefslogtreecommitdiffstats
path: root/webkit/glue/user_agent.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 21:37:59 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 21:37:59 +0000
commit38f66acdaf57a5022e8b15b16e34e76496eef166 (patch)
tree7ab65545117da2df6c5b8f2439ca548fa80dd316 /webkit/glue/user_agent.cc
parent4c6b474b7f4e105498cfa1e6c48c01947931026a (diff)
downloadchromium_src-38f66acdaf57a5022e8b15b16e34e76496eef166.zip
chromium_src-38f66acdaf57a5022e8b15b16e34e76496eef166.tar.gz
chromium_src-38f66acdaf57a5022e8b15b16e34e76496eef166.tar.bz2
Drop "U;" from the UA string. This parallels https://bugs.webkit.org/show_bug.cgi?id=54566 and also matches a change in Firefox 4.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6576043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/user_agent.cc')
-rw-r--r--webkit/glue/user_agent.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc
index fc4aa6c..d79e678 100644
--- a/webkit/glue/user_agent.cc
+++ b/webkit/glue/user_agent.cc
@@ -97,8 +97,6 @@ void BuildUserAgent(bool mimic_windows, std::string* result) {
"?";
#endif
- const char kUserAgentSecurity = 'U'; // "US" strength encryption
-
// 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!!
@@ -107,10 +105,9 @@ void BuildUserAgent(bool mimic_windows, std::string* result) {
// Derived from Safari's UA string.
base::StringAppendF(
result,
- "Mozilla/5.0 (%s; %c; %s) AppleWebKit/%d.%d"
+ "Mozilla/5.0 (%s; %s) AppleWebKit/%d.%d"
" (KHTML, like Gecko) %s Safari/%d.%d",
mimic_windows ? "Windows" : kUserAgentPlatform,
- kUserAgentSecurity,
((mimic_windows ? "Windows " : "") + BuildOSCpuInfo()).c_str(),
WEBKIT_VERSION_MAJOR,
WEBKIT_VERSION_MINOR,