Index: content/shell/common/shell_content_client.cc |
diff --git a/content/shell/common/shell_content_client.cc b/content/shell/common/shell_content_client.cc |
index f3bfc520669d90cc3667b4926df04f65d27aae64..3d1891df9e1fead50cc2a832e23377edbfff445a 100644 |
--- a/content/shell/common/shell_content_client.cc |
+++ b/content/shell/common/shell_content_client.cc |
@@ -18,10 +18,7 @@ |
namespace content { |
-ShellContentClient::~ShellContentClient() { |
-} |
- |
-std::string ShellContentClient::GetUserAgent() const { |
+std::string GetShellUserAgent() { |
std::string product = "Chrome/" CONTENT_SHELL_VERSION; |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
if (command_line->HasSwitch(switches::kUseMobileUserAgent)) |
@@ -29,6 +26,13 @@ std::string ShellContentClient::GetUserAgent() const { |
return BuildUserAgentFromProduct(product); |
} |
+ShellContentClient::~ShellContentClient() { |
+} |
+ |
+std::string ShellContentClient::GetUserAgent() const { |
+ return GetShellUserAgent(); |
+} |
+ |
base::string16 ShellContentClient::GetLocalizedString(int message_id) const { |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { |
switch (message_id) { |