| Index: content/common/user_agent.cc
|
| diff --git a/content/common/user_agent.cc b/content/common/user_agent.cc
|
| index 5602261f68182583cd7840e983558b86d096bb0c..ee6e9011412f3407b627fcc82b57250db77c4deb 100644
|
| --- a/content/common/user_agent.cc
|
| +++ b/content/common/user_agent.cc
|
| @@ -63,6 +63,15 @@ std::string BuildOSCpuInfo() {
|
| #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) {
|
| @@ -108,9 +117,8 @@ std::string BuildOSCpuInfo() {
|
| base::StringAppendF(
|
| &os_cpu,
|
| #if defined(OS_WIN)
|
| - "Windows NT %d.%d%s",
|
| - os_major_version,
|
| - os_minor_version,
|
| + "Windows NT %s%s",
|
| + windows_version_str.c_str(),
|
| architecture_token.c_str()
|
| #elif defined(OS_MACOSX)
|
| "Intel Mac OS X %d_%d_%d",
|
|
|