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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js

Issue 1548283003: Add P2 UMA metrics for Media Router user actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/resources/media_router/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index d64e3935eaa8d1def34ed2da4f71732c3d6d016c..44e6910dbe4874753b1fb4ea4e96a6826e0a0cd8 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -621,6 +621,7 @@ Polymer({
return;
this.userHasSelectedCastMode_ = true;
+ this.fire('cast-mode-selected', {castModeType: clickedMode.type});
// The list of sinks to show will be the same if the shown cast mode did
// not change, regardless of whether the user selected it explicitly.
@@ -683,6 +684,7 @@ Polymer({
*/
onSinkClick_: function(event) {
this.showOrCreateRoute_(this.$.sinkList.itemForElement(event.target));
+ this.fire('sink-click', {index: event.model.index});
},
/**

Powered by Google App Engine
This is Rietveld 408576698