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

Side by Side Diff: components/version_info/channel_android.cc

Issue 2879703002: WebView: Add channel info for UMA (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « components/version_info/channel_android.h ('k') | components/version_info/version_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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.
4
5 #include "components/version_info/channel_android.h"
6
7 #include <cstring>
8
9 namespace version_info {
10
11 Channel ChannelFromPackageName(const char* package_name) {
12 if (!strcmp(package_name, "com.android.chrome") ||
13 !strcmp(package_name, "com.chrome.work"))
14 return Channel::STABLE;
15 if (!strcmp(package_name, "com.chrome.beta"))
16 return Channel::BETA;
17 if (!strcmp(package_name, "com.chrome.dev"))
18 return Channel::DEV;
19 if (!strcmp(package_name, "com.chrome.canary"))
20 return Channel::CANARY;
21
22 return Channel::UNKNOWN;
23 }
24
25 } // namespace version_info
OLDNEW
« no previous file with comments | « components/version_info/channel_android.h ('k') | components/version_info/version_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698