diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 15:05:02 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 15:05:02 +0000 |
commit | e67a73f47398a8d89a98abde04f3d4c7695a6d30 (patch) | |
tree | ae5652a01e709405ab8fc3c2887b0b96b38ca490 /chrome_frame/html_utils.h | |
parent | 22e1168491f768ae6ff20ded07b3063ac5fe34db (diff) | |
download | chromium_src-e67a73f47398a8d89a98abde04f3d4c7695a6d30.zip chromium_src-e67a73f47398a8d89a98abde04f3d4c7695a6d30.tar.gz chromium_src-e67a73f47398a8d89a98abde04f3d4c7695a6d30.tar.bz2 |
When GCF is the default renderer, use Chrome's User-agent header instead of IE's.
TEST=Set IsDefaultRenderer to 1 (REG_DWORD) under the ChromeFrame registry key. Check if the User agent header in requests is the Chrome user agent. Then set the value to 0 and make sure the regular user-agent header is there.
BUG=50788
Review URL: http://codereview.chromium.org/3130016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/html_utils.h')
-rw-r--r-- | chrome_frame/html_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/html_utils.h b/chrome_frame/html_utils.h index 8296b5f..8bffb32 100644 --- a/chrome_frame/html_utils.h +++ b/chrome_frame/html_utils.h @@ -130,6 +130,9 @@ std::string AddChromeFrameToUserAgentValue(const std::string& value); // NOTE: The returned string includes the "User-Agent: " header name. std::string GetDefaultUserAgentHeaderWithCFTag(); +// Returns the User-Agent header as would be used by Chrome itself. +const char* GetChromeUserAgent(); + // Fetches the default user agent string from urlmon. // This value does not include the "User-Agent:" header name. std::string GetDefaultUserAgent(); |