OLD | NEW |
(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 |
OLD | NEW |