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

Unified Diff: chrome/browser/resources/media_router/media_router_ui_interface.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/media_router_ui_interface.js
diff --git a/chrome/browser/resources/media_router/media_router_ui_interface.js b/chrome/browser/resources/media_router/media_router_ui_interface.js
index a19cf3c874e961991161c5b85d59544de0073a00..4d34d68bbef0ea0d6a29afa472d7b4c4a5e353ae 100644
--- a/chrome/browser/resources/media_router/media_router_ui_interface.js
+++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
@@ -89,17 +89,20 @@ cr.define('media_router.ui', function() {
* userDomain: string
* },
* routes: !Array<!media_router.Route>,
- * castModes: !Array<!media_router.CastMode>}} data
+ * castModes: !Array<!media_router.CastMode>,
+ * isOffTheRecord: boolean}} data
* Parameters in data:
* deviceMissingUrl - url to be opened on "Device missing?" clicked.
* sinksAndIdentity - list of sinks to be displayed and user identity.
* routes - list of routes that are associated with the sinks.
* castModes - list of available cast modes.
+ * isOffTheRecord - whether or not the browser is currently incognito.
*/
function setInitialData(data) {
container.deviceMissingUrl = data['deviceMissingUrl'];
container.castModeList = data['castModes'];
this.setSinkListAndIdentity(data['sinksAndIdentity']);
+ container.isOffTheRecord = data['isOffTheRecord'];
container.routeList = data['routes'];
container.maybeShowRouteDetailsOnOpen();
media_router.browserApi.onInitialDataReceived();

Powered by Google App Engine
This is Rietveld 408576698