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

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

Issue 1680743006: [Media Router] Show user email in header if cloud sink is present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Overhauled implementation to use observers and fire events as well as push down logic into native m… Created 4 years, 10 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 da84a48c968aed9d168b69a6b2add3a3ea449ed5..62029a7e6d05f08c8b1230c2c57e895368aaa7e6 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
@@ -382,6 +382,7 @@ Polymer({
},
listeners: {
+ 'header-height-changed': 'updateElementPositioning_',
'header-or-arrow-click': 'toggleCastModeHidden_',
'mouseleave': 'onMouseLeave_',
'mouseenter': 'onMouseEnter_',
@@ -730,9 +731,7 @@ Polymer({
* @private
*/
computeSinkDomainHidden_: function(sink) {
- // TODO(amp): Check the domain of Chrome profile identity and only show the
- // sink domain if it doesn't match the profile domain. crbug.com/570797
- return this.isEmptyOrWhitespace_(sink.domain);
+ return !this.showDomain || this.isEmptyOrWhitespace_(sink.domain);
},
/**

Powered by Google App Engine
This is Rietveld 408576698