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

Unified Diff: chrome/browser/resources/media_router/media_router_ui_interface.js

Issue 1606303005: [Media Router] Add cloud services learn more link to first run flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 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 44d9479866005beb241c9beae2ca76dd99b9bebf..59f58f5a759c2b5220dd7eb0cc6a7c8e66343c98 100644
--- a/chrome/browser/resources/media_router/media_router_ui_interface.js
+++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
@@ -50,12 +50,15 @@ cr.define('media_router.ui', function() {
/**
* Populates the WebUI with data obtained from Media Router.
*
- * @param {{deviceMissingUrl: string,
+ * @param {{firstRunFlowCloudPrefLearnMoreUrl: string,
+ * deviceMissingUrl: string,
* sinks: !Array<!media_router.Sink>,
* routes: !Array<!media_router.Route>,
* castModes: !Array<!media_router.CastMode>,
* wasFirstRunFlowAcknowledged: boolean}} data
* Parameters in data:
+ * firstRunFlowCloudPrefLearnMoreUrl - url to open when the cloud services
+ * pref learn more link is clicked.
* deviceMissingUrl - url to be opened on "Device missing?" clicked.
* sinks - list of sinks to be displayed.
* routes - list of routes that are associated with the sinks.
@@ -64,6 +67,8 @@ cr.define('media_router.ui', function() {
* acknowledged by user.
*/
function setInitialData(data) {
+ container.firstRunFlowCloudPrefLearnMoreUrl =
+ data['firstRunFlowCloudPrefLearnMoreUrl'];
container.deviceMissingUrl = data['deviceMissingUrl'];
container.castModeList = data['castModes'];
container.allSinks = data['sinks'];

Powered by Google App Engine
This is Rietveld 408576698