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

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

Issue 2879703002: WebView: Add channel info for UMA (Closed)
Patch Set: Created 3 years, 7 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
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* name) {
12 if (!strcmp(name, "com.android.chrome") || !strcmp(name, "com.chrome.work"))
13 return Channel::STABLE;
14 if (!strcmp(name, "com.chrome.beta"))
15 return Channel::BETA;
16 if (!strcmp(name, "com.chrome.dev"))
17 return Channel::DEV;
18 if (!strcmp(name, "com.chrome.canary"))
19 return Channel::CANARY;
20
21 return Channel::UNKNOWN;
22 }
23
24 } // namespace version_info
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698