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

Unified Diff: components/ui_metrics/sadtab_metrics_types.h

Issue 2869223002: Metrics logging for user engagement of the Reload and Feedback buttons (Closed)
Patch Set: Fix Mac build Created 3 years, 6 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 | « components/ui_metrics/BUILD.gn ('k') | ios/chrome/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_metrics/sadtab_metrics_types.h
diff --git a/components/ui_metrics/sadtab_metrics_types.h b/components/ui_metrics/sadtab_metrics_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..056541aecd6eaf93cc977be1e99a8635fde24b6c
--- /dev/null
+++ b/components/ui_metrics/sadtab_metrics_types.h
@@ -0,0 +1,28 @@
+// 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 COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_
+#define COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_
+
+namespace ui_metrics {
+// An enum for reporting interaction events to a UMA histogram.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.tab
+enum class SadTabEvent {
+ // Records that the Sad Tab was displayed.
+ DISPLAYED = 0,
+ // Records that the main Sad Tab button was triggered.
+ BUTTON_CLICKED = 1,
+ // Records that the Sad Tab help link was triggered.
+ HELP_LINK_CLICKED = 2,
+ // Enum end marker.
+ MAX_SAD_TAB_EVENT = 3,
+};
+
+// Describes the mode of the Sad Tab as being in 'reload' mode.
+const char kSadTabReloadHistogramKey[] = "Tabs.SadTab.Reload.Event";
+// Describes the mode of the Sad Tab as being in 'feedback' mode.
+const char kSadTabFeedbackHistogramKey[] = "Tabs.SadTab.Feedback.Event";
+}
+
+#endif // COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_
« no previous file with comments | « components/ui_metrics/BUILD.gn ('k') | ios/chrome/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698