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

Unified Diff: components/metrics/net/version_utils.cc

Issue 1373793002: Use version_info wrapper functions instead of macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/net/version_utils.cc
diff --git a/components/metrics/net/version_utils.cc b/components/metrics/net/version_utils.cc
index 380b73f6c1fb694bf2cf72e6b29a878892fdb00e..37452330d9e5d5299e38c79f89754dd2773f868c 100644
--- a/components/metrics/net/version_utils.cc
+++ b/components/metrics/net/version_utils.cc
@@ -5,17 +5,17 @@
#include "components/metrics/net/version_utils.h"
#include "base/logging.h"
+#include "build/build_config.h"
#include "components/version_info/version_info.h"
-#include "components/version_info/version_info_values.h"
namespace metrics {
std::string GetVersionString() {
- std::string version = PRODUCT_VERSION;
+ std::string version = version_info::GetVersionNumber();
#if defined(ARCH_CPU_64_BITS)
version += "-64";
#endif // defined(ARCH_CPU_64_BITS)
- if (!IS_OFFICIAL_BUILD)
+ if (!version_info::IsOfficialBuild())
version.append("-devel");
return version;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698