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

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

Issue 2930983003: [Media Router UI] Fix pseudo sink logic for cast modes. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f7c83258a29c0bb157835e5b1fe146137778f584..155bc82031fd8bf9f4699defaae97426f2c577b6 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
@@ -642,7 +642,8 @@ Polymer({
return forcedMode;
var allCastModes = this.allSinks.reduce(function(castModesSoFar, sink) {
- return castModesSoFar | sink.castModes;
+ // Ignore pseudo sinks in the cast mode computation.
+ return castModesSoFar | (sink.isPseudoSink ? 0 : sink.castModes);
}, 0);
// This checks whether |castModes| does not consist of exactly 1 cast mode.
« no previous file with comments | « no previous file | chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698