summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_content_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/chrome_content_client.cc')
-rw-r--r--chrome/common/chrome_content_client.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index fc9149b..e245a0e 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -504,14 +504,7 @@ std::string ChromeContentClient::GetProduct() const {
}
std::string ChromeContentClient::GetUserAgent() const {
- std::string product = GetProduct();
- product += " (Dart)";
-#if defined(OS_ANDROID)
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (command_line->HasSwitch(switches::kUseMobileUserAgent))
- product += " Mobile";
-#endif
- return webkit_glue::BuildUserAgentFromProduct(product);
+ return ::GetUserAgent();
}
base::string16 ChromeContentClient::GetLocalizedString(int message_id) const {