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

Unified Diff: chrome/browser/resources/media_router/media_router_ui_interface.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: More adjustments to get dynamic height change working and updated domain handling. 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/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 35e8afbffc77111b409eafd6784c3cff5fc79889..e4495b9bdbc0574e21525aec09c2135c7ecbe2bd 100644
--- a/chrome/browser/resources/media_router/media_router_ui_interface.js
+++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
@@ -51,6 +51,9 @@ cr.define('media_router.ui', function() {
* routes: !Array<!media_router.Route>,
* castModes: !Array<!media_router.CastMode>,
* wasFirstRunFlowAcknowledged: boolean,
+ * userEmail: string,
+ * userDomain: string,
+ * showEmail: boolean,
* showFirstRunFlowCloudPref: boolean}} data
* Parameters in data:
* firstRunFlowCloudPrefLearnMoreUrl - url to open when the cloud services
@@ -63,6 +66,9 @@ cr.define('media_router.ui', function() {
* castModes - list of available cast modes.
* wasFirstRunFlowAcknowledged - true if first run flow was previously
* acknowledged by user.
+ * userEmail - The email of the user if the user is signed in.
+ * userDomain - The domain of the user if the user is signed in.
+ * showEmail - true if the user email should be shown.
* showFirstRunFlowCloudPref - true if the cloud pref option should be
* shown.
*/
@@ -75,6 +81,9 @@ cr.define('media_router.ui', function() {
container.castModeList = data['castModes'];
container.allSinks = data['sinks'];
container.routeList = data['routes'];
+ container.userEmail = data['userEmail'];
+ container.userDomain = data['userDomain'];
+ container.showEmail = data['showEmail'];
container.showFirstRunFlowCloudPref =
data['showFirstRunFlowCloudPref'];
// Some users acknowledged the first run flow before the cloud prefs

Powered by Google App Engine
This is Rietveld 408576698