summaryrefslogtreecommitdiffstats
path: root/chrome/browser/banners/app_banner_metrics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/banners/app_banner_metrics.cc')
-rw-r--r--chrome/browser/banners/app_banner_metrics.cc24
1 files changed, 4 insertions, 20 deletions
diff --git a/chrome/browser/banners/app_banner_metrics.cc b/chrome/browser/banners/app_banner_metrics.cc
index f9bbd34..5ab6f59 100644
--- a/chrome/browser/banners/app_banner_metrics.cc
+++ b/chrome/browser/banners/app_banner_metrics.cc
@@ -4,48 +4,32 @@
#include "chrome/browser/banners/app_banner_metrics.h"
-#include "base/metrics/histogram_macros.h"
#include "base/metrics/sparse_histogram.h"
namespace banners {
-const char kDismissEventHistogram[] = "AppBanners.DismissEvent";
-const char kDisplayEventHistogram[] = "AppBanners.DisplayEvent";
-const char kInstallEventHistogram[] = "AppBanners.InstallEvent";
-const char kMinutesHistogram[] =
- "AppBanners.MinutesFromFirstVisitToBannerShown";
-const char kUserResponseHistogram[] = "AppBanners.UserResponse";
-
void TrackDismissEvent(int event) {
DCHECK_LT(DISMISS_EVENT_MIN, event);
DCHECK_LT(event, DISMISS_EVENT_MAX);
- UMA_HISTOGRAM_SPARSE_SLOWLY(kDismissEventHistogram, event);
+ UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.DismissEvent", event);
}
void TrackDisplayEvent(int event) {
DCHECK_LT(DISPLAY_EVENT_MIN, event);
DCHECK_LT(event, DISPLAY_EVENT_MAX);
- UMA_HISTOGRAM_SPARSE_SLOWLY(kDisplayEventHistogram, event);
+ UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.DisplayEvent", event);
}
void TrackInstallEvent(int event) {
DCHECK_LT(INSTALL_EVENT_MIN, event);
DCHECK_LT(event, INSTALL_EVENT_MAX);
- UMA_HISTOGRAM_SPARSE_SLOWLY(kInstallEventHistogram, event);
-}
-
-void TrackMinutesFromFirstVisitToBannerShown(int minutes) {
- // Histogram ranges from 1 minute to the number of minutes in 21 days.
- // This is one more day than the decay length of time for site engagement,
- // and seven more days than the expiry of visits for the app banner
- // navigation heuristic.
- UMA_HISTOGRAM_CUSTOM_COUNTS(kMinutesHistogram, minutes, 1, 30240, 100);
+ UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.InstallEvent", event);
}
void TrackUserResponse(int event) {
DCHECK_LT(USER_RESPONSE_MIN, event);
DCHECK_LT(event, USER_RESPONSE_MAX);
- UMA_HISTOGRAM_SPARSE_SLOWLY(kUserResponseHistogram, event);
+ UMA_HISTOGRAM_SPARSE_SLOWLY("AppBanners.UserResponse", event);
}
} // namespace banners