diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-21 21:43:11 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-21 21:43:11 +0000 |
commit | 00ddc6493e5f6d2940807fa23b6e267aecfb10c9 (patch) | |
tree | f4dbb5beac4899bec99a1edd1368ad4936e36e2b /content/shell | |
parent | efed16c47bf2b300104332c70a7d051a8f3ca80d (diff) | |
download | chromium_src-00ddc6493e5f6d2940807fa23b6e267aecfb10c9.zip chromium_src-00ddc6493e5f6d2940807fa23b6e267aecfb10c9.tar.gz chromium_src-00ddc6493e5f6d2940807fa23b6e267aecfb10c9.tar.bz2 |
Use Chrome's user agent string for content_shell, since some sites (i.e. Gmail) give a degraded experience otherwise.
BUG=90445
Review URL: http://codereview.chromium.org/7980044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r-- | content/shell/shell_content_client.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/shell/shell_content_client.cc b/content/shell/shell_content_client.cc index 12bb53d..644fd98 100644 --- a/content/shell/shell_content_client.cc +++ b/content/shell/shell_content_client.cc @@ -5,6 +5,7 @@ #include "content/shell/shell_content_client.h" #include "base/string_piece.h" +#include "webkit/glue/user_agent.h" namespace content { @@ -30,7 +31,7 @@ bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { } std::string ShellContentClient::GetUserAgent(bool mimic_windows) const { - return std::string(); + return webkit_glue::BuildUserAgentHelper(mimic_windows, "Chrome/15.16.17.18"); } string16 ShellContentClient::GetLocalizedString(int message_id) const { |