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

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

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
Index: chrome/browser/installable/installable_metrics.h
diff --git a/chrome/browser/installable/installable_metrics.h b/chrome/browser/installable/installable_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..58e587855bb42411e20f075e0ac3df752ed79e55
--- /dev/null
+++ b/chrome/browser/installable/installable_metrics.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef CHROME_BROWSER_INSTALLABLE_INSTALLABLE_METRICS_H_
+#define CHROME_BROWSER_INSTALLABLE_INSTALLABLE_METRICS_H_
+
+// This enum backs a UMA histogram and must be treated as append-only.
+enum class InstallabilityCheckStatus {
+ NOT_STARTED,
+ STOPPED_BEFORE_COMPLETION,
+ IN_PROGRESS_NON_PROGRESSIVE_WEB_APP,
+ IN_PROGRESS_PROGRESSIVE_WEB_APP,
+ COMPLETE_NON_PROGRESSIVE_WEB_APP,
+ COMPLETE_PROGRESSIVE_WEB_APP,
+ COUNT,
+};
+
+class InstallableMetrics {
+ public:
+ static void RecordMenuOpenHistogram(InstallabilityCheckStatus status);
+ static void RecordMenuItemAddToHomescreenHistogram(
+ InstallabilityCheckStatus status);
+};
+
+#endif // CHROME_BROWSER_INSTALLABLE_INSTALLABLE_METRICS_H_
« no previous file with comments | « chrome/browser/installable/installable_manager_browsertest.cc ('k') | chrome/browser/installable/installable_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698