summaryrefslogtreecommitdiffstats
path: root/webkit/glue/user_agent.cc
diff options
context:
space:
mode:
authorrbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 15:11:16 +0000
committerrbyers@chromium.org <rbyers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 15:11:16 +0000
commit71de819b6409c3fc9886c0d07e2e6216d1a52703 (patch)
treebba1654658093b76e61e7fa4ea59c5e92cb8c7d8 /webkit/glue/user_agent.cc
parent928c0e714de52f0183cd4140be3692449dcf85c3 (diff)
downloadchromium_src-71de819b6409c3fc9886c0d07e2e6216d1a52703.zip
chromium_src-71de819b6409c3fc9886c0d07e2e6216d1a52703.tar.gz
chromium_src-71de819b6409c3fc9886c0d07e2e6216d1a52703.tar.bz2
Tweak UserAgent string for Touch_UI ChromeOS builds
Use 'CrOS Touch' as the OS instead of just 'CrOS' for TOUCH_UI builds of ChromeOS. This lets websites that are already customizing for tablet experiences easily adapt to support tablet ChromeOS devices. In particular, this will result in UA strings like the following: Mozilla/5.0 (X11; CrOS Touch x86_64 10.4.0) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.692.0 Safari/534.24 BUG=74942 TEST=None Review URL: http://codereview.chromium.org/6627010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/user_agent.cc')
-rw-r--r--webkit/glue/user_agent.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc
index 04fab21..c8d8b24 100644
--- a/webkit/glue/user_agent.cc
+++ b/webkit/glue/user_agent.cc
@@ -89,7 +89,11 @@ std::string BuildOSCpuInfo() {
os_minor_version,
os_bugfix_version
#elif defined(OS_CHROMEOS)
- "CrOS %s %d.%d.%d",
+ "CrOS "
+#if defined(TOUCH_UI)
+ "Touch "
+#endif
+ "%s %d.%d.%d",
cputype.c_str(), // e.g. i686
os_major_version,
os_minor_version,