Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / common / metrics / version_utils.h
bloba73b6168b49f11a9e20678cb06a8f7e1a34d522f
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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_METRICS_VERSION_UTILS_H_
6 #define CHROME_COMMON_METRICS_VERSION_UTILS_H_
8 #include <string>
10 #include "components/metrics/proto/system_profile.pb.h"
12 namespace version_info {
13 enum class Channel;
16 namespace metrics {
18 // Build a string including the Chrome app version, suffixed by "-64" on 64-bit
19 // platforms, and "-devel" on developer builds.
20 std::string GetVersionString();
22 // Translates version_info::Channel to the equivalent
23 // SystemProfileProto::Channel.
24 SystemProfileProto::Channel AsProtobufChannel(
25 version_info::Channel channel);
27 } // namespace metrics
29 #endif // CHROME_COMMON_METRICS_VERSION_UTILS_H_