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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 10808052: Tidy up Android's is-tablet functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 98642532d06126af7d54eadbbd7afe62fc8ad6ea..c30d2037b6bf4ca5569c730d749d95b88fb5a01a 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -435,7 +435,7 @@ std::string ChromeContentClient::GetUserAgent() const {
product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
#if defined(OS_ANDROID)
CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(switches::kTabletUi)) {
+ if (!command_line->HasSwitch(switches::kUseMobileUserAgent)) {
product += " Mobile";
}
#endif

Powered by Google App Engine
This is Rietveld 408576698