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

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

Issue 2301263004: Add WebAPK installation metrics. (Closed)
Patch Set: pkotwicz@'s 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
« no previous file with comments | « chrome/browser/android/webapk/webapk_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('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 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 kInstallSourceHistogram[] = "WebApk.Install.InstallSource";
13 const char kInfoBarShownHistogram[] = "WebApk.Install.InfoBarShown";
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 TrackInstallSource(InstallSource event) {
21 UMA_HISTOGRAM_ENUMERATION(kInstallSourceHistogram, event, INSTALL_SOURCE_MAX);
22 }
23
24 void TrackInstallInfoBarShown(InfoBarShown event) {
25 UMA_HISTOGRAM_ENUMERATION(kInfoBarShownHistogram, event,
26 WEBAPK_INFOBAR_SHOWN_MAX);
27 }
28
29 void TrackUserAction(UserAction event) {
30 UMA_HISTOGRAM_ENUMERATION(kUserActionHistogram, event, USER_ACTION_MAX);
31 }
32
33 } // namespace webapk
OLDNEW
« no previous file with comments | « chrome/browser/android/webapk/webapk_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698