Index: chrome_frame/renderer_glue.cc |
diff --git a/chrome_frame/renderer_glue.cc b/chrome_frame/renderer_glue.cc |
index 96ccdc1b982a6a218b49e7b034f4c665b9683941..d9045061e6cd34d34b33838bed20e7186ea2a430 100644 |
--- a/chrome_frame/renderer_glue.cc |
+++ b/chrome_frame/renderer_glue.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -12,3 +12,15 @@ class GURL; |
bool IsPluginProcess() { |
return false; |
} |
+ |
+namespace webkit_glue { |
+ |
+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 webkit_glue::BuildUserAgentHelper(mimic_windows, product); |
+} |
+ |
+} // end namespace webkit_glue |