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

Unified Diff: webkit/glue/user_agent.h

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: impl. review comments Created 8 years, 4 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.h
diff --git a/webkit/glue/user_agent.h b/webkit/glue/user_agent.h
index 60f6e53b7632dca4fe1808e6f174c2244b629846..d31602048d4b889f9de3f2b6eb125ddfd7e6542b 100644
--- a/webkit/glue/user_agent.h
+++ b/webkit/glue/user_agent.h
@@ -32,6 +32,12 @@ void SetUserAgentOSInfo(const std::string& os_info);
// product name.
std::string BuildUserAgentFromProduct(const std::string& product);
+// Helper function to generate user agent string from current
+// user agent string by replacing a part so to appear to be
+// a tablet device (for Request Tablet Site)
+std::string BuildUserAgentOverrideForTabletSiteFromUserAgent(
+ const std::string& user_agent);
+
} // namespace webkit_glue
#endif // WEBKIT_GLUE_USER_AGENT_H_

Powered by Google App Engine
This is Rietveld 408576698