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

Unified Diff: content/common/user_agent.cc

Issue 2581033002: Revert of Add Windows 10 build number to user-agent (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « base/sys_info_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/user_agent.cc
diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
index ee6e9011412f3407b627fcc82b57250db77c4deb..5602261f68182583cd7840e983558b86d096bb0c 100644
--- a/content/common/user_agent.cc
+++ b/content/common/user_agent.cc
@@ -63,15 +63,6 @@
#endif
#if defined(OS_WIN)
- std::string windows_version_str;
- if (os_major_version >= 10) {
- base::StringAppendF(&windows_version_str, "%d.%d.%d",
- os_major_version, os_minor_version, os_bugfix_version);
- } else {
- base::StringAppendF(
- &windows_version_str, "%d.%d", os_major_version, os_minor_version);
- }
-
std::string architecture_token;
base::win::OSInfo* os_info = base::win::OSInfo::GetInstance();
if (os_info->wow64_status() == base::win::OSInfo::WOW64_ENABLED) {
@@ -117,8 +108,9 @@
base::StringAppendF(
&os_cpu,
#if defined(OS_WIN)
- "Windows NT %s%s",
- windows_version_str.c_str(),
+ "Windows NT %d.%d%s",
+ os_major_version,
+ os_minor_version,
architecture_token.c_str()
#elif defined(OS_MACOSX)
"Intel Mac OS X %d_%d_%d",
« no previous file with comments | « base/sys_info_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698