Chromium Code Reviews| 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..5f131d896abc47310c7fb6d306d7e14091fcd230 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 be opened on "Lean More" from |
|
imcheng
2016/01/25 19:21:07
make this comment consistent with the one in media
apacible
2016/01/25 22:39:43
Done.
|
| + * first run flow 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']; |