diff options
Diffstat (limited to 'chrome_frame/renderer_glue.cc')
-rw-r--r-- | chrome_frame/renderer_glue.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome_frame/renderer_glue.cc b/chrome_frame/renderer_glue.cc index 6f4b7fe..64890ef 100644 --- a/chrome_frame/renderer_glue.cc +++ b/chrome_frame/renderer_glue.cc @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "webkit/glue/user_agent.h" +#include "webkit/glue/webkit_glue.h" + #include "chrome/common/chrome_version_info.h" class GURL; @@ -12,23 +15,16 @@ bool IsPluginProcess() { namespace webkit_glue { -bool IsDefaultPluginEnabled() { - return false; -} - bool FindProxyForUrl(const GURL& url, std::string* proxy_list) { return false; } -// This function is called from BuildUserAgent so we have our own version -// here instead of pulling in the whole renderer lib where this function -// is implemented for Chrome. -std::string GetProductVersion() { +std::string BuildUserAgent(bool mimic_windows) { chrome::VersionInfo version_info; std::string product("Chrome/"); product += version_info.is_valid() ? version_info.Version() : "0.0.0.0"; - return product; + return webkit_glue::BuildUserAgentHelper(mimic_windows, product); } } // end namespace webkit_glue |