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

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

Issue 1990323002: [Media Router WebUI] Handle route details in incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 64a50fbd97d0bbe8b84f74c7cd322f303fc9ba09..af5d4b11a81cb4b252b6aed2a3fae8fcaf4f808e 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
@@ -18,6 +18,15 @@ Polymer({
},
/**
+ * Whether the browser is currently incognito.
+ * @type {boolean}
+ */
+ isOffTheRecord: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
* The route to show.
* @type {?media_router.Route}
*/
@@ -92,7 +101,8 @@ Polymer({
this.route.description) :
'';
- if (!this.route || !this.route.customControllerPath) {
+ if (!this.route || !this.route.customControllerPath ||
+ this.isOffTheRecord) {
this.isCustomControllerHidden_ = true;
return;
}

Powered by Google App Engine
This is Rietveld 408576698