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

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

Issue 1423683002: [Media Router] Add P1 UMA metrics for Media Router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per pkasting@'s comments. 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/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 ba949c3cad8b0446fc47c20210ee448fd52efa2e..d9636271c0e6cd300ff8d72e2508ebb00f794364 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
@@ -203,9 +203,13 @@ Polymer({
},
attached: function() {
- // Turn off the spinner after 3 seconds.
+ // Turn off the spinner after 3 seconds, then report the current number of
+ // sinks.
this.async(function() {
this.justOpened_ = false;
+ this.fire('report-sink-count', {
+ sinkCount: this.allSinks.length,
+ });
}, 3000 /* 3 seconds */);
},

Powered by Google App Engine
This is Rietveld 408576698