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

Unified Diff: chrome/browser/media/router/media_router_metrics.h

Issue 1423683002: [Media Router] Add P1 UMA metrics for Media Router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix JS. Created 5 years, 2 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/media/router/media_router_metrics.h
diff --git a/chrome/browser/media/router/media_router_metrics.h b/chrome/browser/media/router/media_router_metrics.h
new file mode 100644
index 0000000000000000000000000000000000000000..b3d168757047755d4347c722a707c3f2c0fce26a
--- /dev/null
+++ b/chrome/browser/media/router/media_router_metrics.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
+
+namespace media_router {
+
+// Where the user clicked to open the Media Router dialog.
+enum MediaRouterDialogOpenOrigin {
+ // NOTE: Do not renumber these as that would confuse interpretation of
+ // previously logged data. When making changes, also update the enum list
+ // in tools/metrics/histograms/histograms.xml to keep it in sync.
+ TOOLBAR = 0,
+ OVERFLOW_MENU = 1,
+ CONTEXTUAL_MENU = 2,
+ PAGE = 3,
+
+ // NOTE: Add entries only immediately above this line.
+ TOTAL_COUNT = 4
+};
+
+class MediaRouterMetrics {
+ public:
+ // Records where the user clicked to open the Media Router dialog.
+ static void RecordMediaRouterDialogOrigin(
+ MediaRouterDialogOpenOrigin origin);
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_
« no previous file with comments | « chrome/browser/media/router/media_router_dialog_controller.cc ('k') | chrome/browser/media/router/media_router_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698