Chromium Code Reviews| 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. |