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

Unified Diff: ui/base/ui_metrics_types.h

Issue 2869223002: Metrics logging for user engagement of the Reload and Feedback buttons (Closed)
Patch Set: Using shared file Created 3 years, 7 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 | « ui/base/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ui_metrics_types.h
diff --git a/ui/base/ui_metrics_types.h b/ui/base/ui_metrics_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb3f43b4e9bf16444e3a72fd215d2f402685cca6
--- /dev/null
+++ b/ui/base/ui_metrics_types.h
@@ -0,0 +1,27 @@
+// 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 UI_BASE_UI_METRICS_TYPES_H_
+#define UI_BASE_UI_METRICS_TYPES_H_
+
+namespace ui {
+// An enum for reporting interaction events to a UMA histogram.
+enum class SadTabEvent {
+ // Records that the Sad Tab was displayed.
+ SAD_TAB_EVENT_DISPLAYED = 0,
+ // Records that the main Sad Tab button was triggered.
+ SAD_TAB_EVENT_BUTTON_CLICKED,
Eugene But (OOO till 7-30) 2017/05/16 23:49:33 nit: It is better to initialize every enum item, b
PL 2017/05/23 23:06:38 Done!
+ // Records that the Sad Tab help link was triggered.
+ SAD_TAB_EVENT_HELP_LINK_CLICKED,
+ // Enum end marker.
+ SAD_TAB_EVENT_MAX,
+};
+
+// 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 // UI_BASE_UI_METRICS_TYPES_H_
« no previous file with comments | « ui/base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698