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

Side by Side Diff: chrome/browser/android/webapk/webapk_metrics.cc

Issue 2301263004: Add WebAPK installation metrics. (Closed)
Patch Set: Another round of comments. Created 4 years, 3 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 2016 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 "chrome/browser/android/webapk/webapk_metrics.h"
6
7 #include "base/metrics/histogram_macros.h"
8
9 namespace webapk {
10
11 const char kInstallEventHistogram[] = "WebApk.Install.InstallEvent";
12 const char kStartTypeHistogram[] = "WebApk.Install.StartType";
13 const char kTriggeredTypeHistogram[] = "WebApk.Install.TriggeredType";
14 const char kUserActionHistogram[] = "WebApk.Install.UserAction";
15
16 void TrackInstallEvent(InstallEvent event) {
17 UMA_HISTOGRAM_ENUMERATION(kInstallEventHistogram, event, INSTALL_EVENT_MAX);
18 }
19
20 void TrackInstallStartType(InstallStartType event) {
21 UMA_HISTOGRAM_ENUMERATION(kStartTypeHistogram, event, START_TYPE_MAX);
22 }
23
24 void TrackInstallTriggeredType(InstallTriggeredType event) {
25 UMA_HISTOGRAM_ENUMERATION(kTriggeredTypeHistogram, event, TRIGGERED_TYPE_MAX);
26 }
27
28 void TrackUserAction(UserAction event) {
29 UMA_HISTOGRAM_ENUMERATION(kUserActionHistogram, event, USER_ACTION_MAX);
30 }
31
32 } // namespace webapk
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698