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

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

Issue 2932933002: [Media Router] Increment the media's current_time in the WebUI route controller (Closed)
Patch Set: Check that we can increment in onRouteStatusChange_() 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/route_details/route_details.js
diff --git a/chrome/browser/resources/media_router/elements/route_details/route_details.js b/chrome/browser/resources/media_router/elements/route_details/route_details.js
index eeaf2a5de7702fdc2b997e2c7c3670c04b3e2c20..e3f1aa3f5afd7b3e37452daaadce6be59c0d4f6a 100644
--- a/chrome/browser/resources/media_router/elements/route_details/route_details.js
+++ b/chrome/browser/resources/media_router/elements/route_details/route_details.js
@@ -238,15 +238,13 @@ Polymer({
/**
* Updates either the extensionview or the WebUI route controller, depending
* on which should be shown.
+ * @param {?media_router.Route} newRoute
* @private
*/
onRouteChange_: function(newRoute) {
if (this.controllerType_ !== media_router.ControllerType.WEBUI) {
this.updateActivityStatus_();
- }
- if (newRoute &&
- this.controllerType_ === media_router.ControllerType.WEBUI &&
- this.$$('route-controls')) {
+ } else if (this.$$('route-controls')) {
this.$$('route-controls').onRouteUpdated(newRoute);
}
},

Powered by Google App Engine
This is Rietveld 408576698