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

Side by Side Diff: chrome/common/chrome_version_info_android.cc

Issue 15981010: Use a direct include of strings headers in chrome/common/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/chrome_version_info_win.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 (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
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
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/chrome_version_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698