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

Unified Diff: components/update_client/utils.cc

Issue 2506523002: Report Windows build and patch number in the component updater checks. (Closed)
Patch Set: static constexpr Created 4 years, 1 month 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/win/windows_version.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/win/windows_version.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698