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

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

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for Review Created 5 years, 1 month 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 a94a0c4ec513393d4779e6453c97743a43ca3ed9..9429831bfaef3c07ccde898ed0a8716a1c254932 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
@@ -238,6 +238,19 @@ Polymer({
}
},
+ setRouteList: function(routeList, joinableRouteIdList) {
imcheng 2015/11/26 00:49:46 I feel like we shouldn't have to fill in the canJo
matt.boetger 2015/12/01 01:26:56 Done.
+ this.routeList = routeList;
+ if (joinableRouteIdList) {
+ // We expect that each route in |routeList| maps to a unique sink.
+ joinableRouteIdList.forEach(function(routeId) {
+ var route = this.routeMap_[routeId];
+ if (route) {
+ route.canJoin = true;
+ }
+ }, this);
+ }
+ },
+
/**
* @param {media_router.MediaRouterView} view The current view.
* @return {boolean} Whether or not to hide the cast mode list.

Powered by Google App Engine
This is Rietveld 408576698