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 kUserActionHistogram[] = "WebApk.Install.UserAction"; |
| 14 |
| 15 void TrackInstallEvent(InstallEvent event) { |
| 16 UMA_HISTOGRAM_ENUMERATION(kInstallEventHistogram, event, INSTALL_EVENT_MAX); |
| 17 } |
| 18 |
| 19 void TrackStartType(StartType event) { |
| 20 UMA_HISTOGRAM_ENUMERATION(kStartTypeHistogram, event, START_TYPE_MAX); |
| 21 } |
| 22 |
| 23 void TrackUserAction(UserAction event) { |
| 24 UMA_HISTOGRAM_ENUMERATION(kUserActionHistogram, event, USER_ACTION_MAX); |
| 25 } |
| 26 |
| 27 } // namespace webapk |
OLD | NEW |