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

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

Issue 2938173004: [Media Router] Add a supports_web_ui_controller attribute to MediaRoute (Closed)
Patch Set: Rebase Created 3 years, 6 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 6ccebfcc0e9e103e71e11c3ed24f9089986d748e..ecf8ad645ae0b6a6e880b5417e4cb7cd0f3fe1c1 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
@@ -389,16 +389,6 @@ Polymer({
observer: 'updateElementPositioning_',
},
- /**
- * Whether the WebUI route controls should be shown instead of the
- * extensionview in the route details view.
- * @type {boolean}
- */
- useWebUiRouteControls: {
- type: Boolean,
- value: false,
- },
-
/**
* Whether the user has explicitly selected a cast mode.
* @private {boolean}
@@ -1883,8 +1873,7 @@ Polymer({
* from route details view to the sink list view.
*/
onRouteControllerInvalidated: function() {
- if (this.useWebUiRouteControls &&
- this.currentView_ == media_router.MediaRouterView.ROUTE_DETAILS) {
+ if (this.currentView_ == media_router.MediaRouterView.ROUTE_DETAILS) {
this.currentRoute_ = null;
this.showSinkList_();
}
@@ -2453,7 +2442,7 @@ Polymer({
showRouteDetails_: function(route) {
this.currentRoute_ = route;
this.currentView_ = media_router.MediaRouterView.ROUTE_DETAILS;
- if (this.useWebUiRouteControls) {
+ if (route.supportsWebUiController) {
media_router.browserApi.onMediaControllerAvailable(route.id);
}
if (this.$$('route-details')) {

Powered by Google App Engine
This is Rietveld 408576698