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 #ifndef COMPONENTS_METRICS_NET_VERSION_UTILS_H_ | 5 #ifndef COMPONENTS_METRICS_VERSION_UTILS_H_ |
6 #define COMPONENTS_METRICS_NET_VERSION_UTILS_H_ | 6 #define COMPONENTS_METRICS_VERSION_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/metrics/proto/system_profile.pb.h" | 10 #include "components/metrics/proto/system_profile.pb.h" |
11 | 11 |
12 namespace version_info { | 12 namespace version_info { |
13 enum class Channel; | 13 enum class Channel; |
14 } | 14 } |
15 | 15 |
16 namespace metrics { | 16 namespace metrics { |
17 | 17 |
18 // Build a string including the Chrome app version, suffixed by "-64" on 64-bit | 18 // Build a string including the Chrome app version, suffixed by "-64" on 64-bit |
19 // platforms, and "-devel" on developer builds. | 19 // platforms, and "-devel" on developer builds. |
20 std::string GetVersionString(); | 20 std::string GetVersionString(); |
21 | 21 |
22 // Translates version_info::Channel to the equivalent | 22 // Translates version_info::Channel to the equivalent |
23 // SystemProfileProto::Channel. | 23 // SystemProfileProto::Channel. |
24 SystemProfileProto::Channel AsProtobufChannel( | 24 SystemProfileProto::Channel AsProtobufChannel(version_info::Channel channel); |
25 version_info::Channel channel); | |
26 | 25 |
27 } // namespace metrics | 26 } // namespace metrics |
28 | 27 |
29 #endif // COMPONENTS_METRICS_NET_VERSION_UTILS_H_ | 28 #endif // COMPONENTS_METRICS_VERSION_UTILS_H_ |
OLD | NEW |