OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_version_info.h" | 5 #include "chrome/common/chrome_version_info.h" |
6 | 6 |
7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 // static | 13 // static |
14 std::string VersionInfo::GetVersionStringModifier() { | 14 std::string VersionInfo::GetVersionStringModifier() { |
15 switch (GetChannel()) { | 15 switch (GetChannel()) { |
16 case CHANNEL_UNKNOWN: return "unknown"; | 16 case CHANNEL_UNKNOWN: return "unknown"; |
17 case CHANNEL_CANARY: return "canary"; | 17 case CHANNEL_CANARY: return "canary"; |
18 case CHANNEL_DEV: return "dev"; | 18 case CHANNEL_DEV: return "dev"; |
19 case CHANNEL_BETA: return "beta"; | 19 case CHANNEL_BETA: return "beta"; |
(...skipping 12 matching lines...) Expand all Loading... |
32 return CHANNEL_STABLE; | 32 return CHANNEL_STABLE; |
33 if (!strcmp(bi->package_name(), "com.chrome.beta")) | 33 if (!strcmp(bi->package_name(), "com.chrome.beta")) |
34 return CHANNEL_BETA; | 34 return CHANNEL_BETA; |
35 if (!strcmp(bi->package_name(), "com.google.android.apps.chrome_dev")) | 35 if (!strcmp(bi->package_name(), "com.google.android.apps.chrome_dev")) |
36 return CHANNEL_DEV; | 36 return CHANNEL_DEV; |
37 | 37 |
38 return CHANNEL_UNKNOWN; | 38 return CHANNEL_UNKNOWN; |
39 } | 39 } |
40 | 40 |
41 } // namespace chrome | 41 } // namespace chrome |
OLD | NEW |