Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6758)

Unified Diff: chrome/common/chrome_version_info.cc

Issue 18055008: Expose "Chrome" as accessible product name. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Parse product name in b_a_win.cc instead Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698