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

Unified Diff: chrome/browser/installable/installable_metrics.cc

Issue 2778983005: Allow the app banner installability check to run on page load. (Closed)
Patch Set: Address comments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/installable/installable_metrics.h ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/installable/installable_metrics.cc
diff --git a/chrome/browser/installable/installable_metrics.cc b/chrome/browser/installable/installable_metrics.cc
new file mode 100644
index 0000000000000000000000000000000000000000..82f3b54adc815e28e9c54c5c3928e2d907d61adb
--- /dev/null
+++ b/chrome/browser/installable/installable_metrics.cc
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/installable/installable_metrics.h"
+
+#include "base/metrics/histogram_macros.h"
+
+void InstallableMetrics::RecordMenuOpenHistogram(
+ InstallabilityCheckStatus status) {
+ UMA_HISTOGRAM_ENUMERATION("Webapp.InstallabilityCheckStatus.MenuOpen", status,
+ InstallabilityCheckStatus::COUNT);
+}
+
+void InstallableMetrics::RecordMenuItemAddToHomescreenHistogram(
+ InstallabilityCheckStatus status) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Webapp.InstallabilityCheckStatus.MenuItemAddToHomescreen", status,
+ InstallabilityCheckStatus::COUNT);
+}
« no previous file with comments | « chrome/browser/installable/installable_metrics.h ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698