| Index: components/update_client/utils.cc
|
| diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
|
| index ea5a39d39564f586ae8a0e913d618966a1485ff3..8d92dff3f78684b63005271f892b530593fdaca0 100644
|
| --- a/components/update_client/utils.cc
|
| +++ b/components/update_client/utils.cc
|
| @@ -72,11 +72,9 @@ std::string HexStringToID(const std::string& hexstr) {
|
|
|
| std::string GetOSVersion() {
|
| #if defined(OS_WIN)
|
| - int32_t major = 0;
|
| - int32_t minor = 0;
|
| - int32_t bugfix = 0;
|
| - base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
|
| - return base::StringPrintf("%d.%d.%d", major, minor, bugfix);
|
| + const auto ver = base::win::OSInfo::GetInstance()->version_number();
|
| + return base::StringPrintf("%d.%d.%d.%d", ver.major, ver.minor, ver.build,
|
| + ver.patch);
|
| #else
|
| return base::SysInfo().OperatingSystemVersion();
|
| #endif
|
|
|