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

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

Issue 1582943003: [Media Router] Add cloud services preferences. (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.js
diff --git a/chrome/browser/resources/media_router/media_router.js b/chrome/browser/resources/media_router/media_router.js
index 7a0535264b605208b56d8a6761e3e980fdf3fe92..34c662eb3e9a205e8b1c1de05866d721cc689ae2 100644
--- a/chrome/browser/resources/media_router/media_router.js
+++ b/chrome/browser/resources/media_router/media_router.js
@@ -81,9 +81,17 @@ cr.define('media_router', function() {
* Updates the preference that the user has seen the first run flow.
* Called when the user clicks on the acknowledgement button on the first run
* flow.
+ *
+ * @param {!Event} event
+ * Parameters in |event|.detail:
+ * optedIntoCloudServices - whether or not the user opted into cloud
+ * services.
*/
- function onAcknowledgeFirstRunFlow() {
- media_router.browserApi.acknowledgeFirstRunFlow();
+ function onAcknowledgeFirstRunFlow(event) {
+ /** @type {{optedIntoCloudServices: boolean}} */
+ var detail = event.detail;
+ media_router.browserApi.acknowledgeFirstRunFlow(
+ detail.optedIntoCloudServices);
}
/**

Powered by Google App Engine
This is Rietveld 408576698