Index: chrome/common/chrome_version_info.cc |
diff --git a/chrome/common/chrome_version_info.cc b/chrome/common/chrome_version_info.cc |
index 89f6ede74aa3963ceb0589f010d24aeb3c54b132..7671a3d4d1d9dbad93e0e7a7f12450becbdcc250 100644 |
--- a/chrome/common/chrome_version_info.cc |
+++ b/chrome/common/chrome_version_info.cc |
@@ -16,6 +16,12 @@ |
namespace chrome { |
+std::string VersionInfo::ProductNameAndVersionForUserAgent() const { |
+ if (!is_valid()) |
+ return std::string(); |
+ return "Chrome/" + Version(); |
+} |
+ |
#if defined(OS_WIN) || defined(OS_MACOSX) |
// On Windows and Mac, we get the Chrome version info by querying |
// FileVersionInfo for the current module. |