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

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

Issue 1582943003: [Media Router] Add cloud services preferences. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per anthonyvd@'s comments. 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/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index 9d0450f906c7fbaa67c80337ecfb4b3fdcc73d84..4a51ce2e6c2e47f13899805fe81251888f13643b 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -385,8 +385,14 @@ Polymer({
* @private
*/
acknowledgeFirstRunFlow_: function() {
+ var userOptedIntoCloudServices = this.$$('#first-run-cloud-checkbox') ?
+ this.$$('#first-run-cloud-checkbox').checked : false;
+ this.fire('acknowledge-first-run-flow', {
+ optedIntoCloudServices: userOptedIntoCloudServices,
+ });
+
this.showFirstRunFlow = false;
- this.fire('acknowledge-first-run-flow');
+ this.showFirstRunFlowCloudPref = false;
},
/**

Powered by Google App Engine
This is Rietveld 408576698