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

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: fix for Dan's comments 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
Index: webkit/glue/user_agent.cc
diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc
index cc03719ebccd87b04909c9c3278dac76d509a692..e6776ed9898c4802fd2efc71547cd3dcc3a2d666 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 4.0.3";
+}
+
namespace webkit_glue {
std::string GetWebKitVersion() {
@@ -179,4 +183,9 @@ std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
return user_agent;
}
+std::string BuildUserAgentOverrideForTabletSiteFromProduct(
+ const std::string& product) {
+ return BuildUserAgentFromOSAndProduct(kOsOverrideForTabletSite, product);
+}
+
} // namespace webkit_glue
« content/browser/web_contents/navigation_controller_impl.h ('K') | « webkit/glue/user_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698