OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/metrics/version_utils.h" | 5 #include "chrome/common/metrics/version_utils.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/version_info/version_info.h" |
8 #include "components/version_info/version_info_values.h" | 9 #include "components/version_info/version_info_values.h" |
9 | 10 |
10 namespace metrics { | 11 namespace metrics { |
11 | 12 |
12 std::string GetVersionString() { | 13 std::string GetVersionString() { |
13 std::string version = PRODUCT_VERSION; | 14 std::string version = PRODUCT_VERSION; |
14 #if defined(ARCH_CPU_64_BITS) | 15 #if defined(ARCH_CPU_64_BITS) |
15 version += "-64"; | 16 version += "-64"; |
16 #endif // defined(ARCH_CPU_64_BITS) | 17 #endif // defined(ARCH_CPU_64_BITS) |
17 if (!IS_OFFICIAL_BUILD) | 18 if (!IS_OFFICIAL_BUILD) |
(...skipping 13 matching lines...) Expand all Loading... |
31 case version_info::Channel::BETA: | 32 case version_info::Channel::BETA: |
32 return SystemProfileProto::CHANNEL_BETA; | 33 return SystemProfileProto::CHANNEL_BETA; |
33 case version_info::Channel::STABLE: | 34 case version_info::Channel::STABLE: |
34 return SystemProfileProto::CHANNEL_STABLE; | 35 return SystemProfileProto::CHANNEL_STABLE; |
35 } | 36 } |
36 NOTREACHED(); | 37 NOTREACHED(); |
37 return SystemProfileProto::CHANNEL_UNKNOWN; | 38 return SystemProfileProto::CHANNEL_UNKNOWN; |
38 } | 39 } |
39 | 40 |
40 } // namespace metrics | 41 } // namespace metrics |
OLD | NEW |