Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_metrics.cc
blob5ab6f59abb42791242aff9bfb52cde4c3e92876f
1 // Copyright 2015 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.
5 #include "chrome/browser/banners/app_banner_metrics.h"
7 #include "base/metrics/sparse_histogram.h"
9 namespace banners {
11 void TrackDismissEvent(int event) {
12 DCHECK_LT(DISMISS_EVENT_MIN, event);
13 DCHECK_LT(event, DISMISS_EVENT_MAX);
14 UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.DismissEvent", event);
17 void TrackDisplayEvent(int event) {
18 DCHECK_LT(DISPLAY_EVENT_MIN, event);
19 DCHECK_LT(event, DISPLAY_EVENT_MAX);
20 UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.DisplayEvent", event);
23 void TrackInstallEvent(int event) {
24 DCHECK_LT(INSTALL_EVENT_MIN, event);
25 DCHECK_LT(event, INSTALL_EVENT_MAX);
26 UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.InstallEvent", event);
29 void TrackUserResponse(int event) {
30 DCHECK_LT(USER_RESPONSE_MIN, event);
31 DCHECK_LT(event, USER_RESPONSE_MAX);
32 UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.UserResponse", event);
35 } // namespace banners