1 // Copyright 2015 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_METRICS_VERSION_UTILS_H_
6 #define COMPONENTS_METRICS_VERSION_UTILS_H_
10 #include "third_party/metrics_proto/system_profile.pb.h"
12 namespace version_info {
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(version_info::Channel channel);
26 // Gets Chrome's package name in Android Chrome, or an empty string on other
28 std::string GetAppPackageName();
30 } // namespace metrics
32 #endif // COMPONENTS_METRICS_VERSION_UTILS_H_