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

Side by Side Diff: chrome/common/metrics/version_utils.h

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/metrics/version_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_COMMON_METRICS_VERSION_UTILS_H_ 5 #ifndef CHROME_COMMON_METRICS_VERSION_UTILS_H_
6 #define CHROME_COMMON_METRICS_VERSION_UTILS_H_ 6 #define CHROME_COMMON_METRICS_VERSION_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/chrome_version_info.h"
11 #include "components/metrics/proto/system_profile.pb.h" 10 #include "components/metrics/proto/system_profile.pb.h"
12 11
12 namespace version_info {
13 enum class Channel;
14 }
15
13 namespace metrics { 16 namespace metrics {
14 17
15 // 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
16 // platforms, and "-devel" on developer builds. 19 // platforms, and "-devel" on developer builds.
17 std::string GetVersionString(); 20 std::string GetVersionString();
18 21
19 // Translates version_info::Channel to the equivalent 22 // Translates version_info::Channel to the equivalent
20 // SystemProfileProto::Channel. 23 // SystemProfileProto::Channel.
21 SystemProfileProto::Channel AsProtobufChannel( 24 SystemProfileProto::Channel AsProtobufChannel(
22 version_info::Channel channel); 25 version_info::Channel channel);
23 26
24 } // namespace metrics 27 } // namespace metrics
25 28
26 #endif // CHROME_COMMON_METRICS_VERSION_UTILS_H_ 29 #endif // CHROME_COMMON_METRICS_VERSION_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/metrics/version_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698