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

Unified Diff: components/update_client/utils.cc

Issue 2506523002: Report Windows build and patch number in the component updater checks. (Closed)
Patch Set: 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
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index ea5a39d39564f586ae8a0e913d618966a1485ff3..4e56c5706da3e8f11680cc67b2b4dd646635b63b 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -32,6 +32,7 @@
#include "components/update_client/update_client_errors.h"
#include "components/update_client/update_query_params.h"
#include "components/update_client/updater_state.h"
+#include "components/update_client/utils_win.h"
#include "crypto/secure_hash.h"
#include "crypto/sha2.h"
#include "net/base/load_flags.h"
@@ -72,11 +73,7 @@ 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);
+ return GetWindowsOSVersion();
#else
return base::SysInfo().OperatingSystemVersion();
#endif

Powered by Google App Engine
This is Rietveld 408576698