Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: webkit/glue/user_agent.cc

Issue 10827146: crbug.com/127841 - Request Tablet Site on CB with touch screen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed spurious newline Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/common/chrome_switches.cc ('K') | « webkit/glue/user_agent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/user_agent.cc
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc
index cc03719ebccd87b04909c9c3278dac76d509a692..0a3fec16d2f5ce8d1c1fb0c0e4ef1f9c79da52fa 100644
--- a/webkit/glue/user_agent.cc
+++ b/webkit/glue/user_agent.cc
@@ -20,6 +20,10 @@
// Generated
#include "webkit_version.h" // NOLINT
+namespace {
+const char kOsOverrideForTabletSite[] = "Linux; Android";
gone 2012/09/06 18:08:32 Change this to "Linux; Android 4.0.3" as per the e
sschmitz 2012/09/06 18:52:45 Ok, thanks for your dilligence on this. Done.
+}
+
namespace webkit_glue {
std::string GetWebKitVersion() {
@@ -179,4 +183,11 @@ std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
return user_agent;
}
+std::string BuildUserAgentOverrideForTabletSiteFromProduct(
+ const std::string& product)
+{
gone 2012/09/06 18:08:32 Brace needs to go on the previous line.
sschmitz 2012/09/06 18:52:45 Old habits die hard ;-) Done
+ return BuildUserAgentFromOSAndProduct(kOsOverrideForTabletSite,
+ product);
+}
+
} // namespace webkit_glue
« chrome/common/chrome_switches.cc ('K') | « webkit/glue/user_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698