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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2617533003: MD Settings: change most checkboxes to toggles (leave dialogs alone) (Closed)
Patch Set: fix tests Created 3 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/settings/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index ae72e250ac670b7f265a5639371cb776c57d1ccd..faf61cdc338e509f348f629804af924de2084eba 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -113,9 +113,9 @@ Polymer({
// <if expr="_google_chrome and not chromeos">
/** @private */
- onMetricsReportingCheckboxTap_: function() {
+ onMetricsReportingControlTap_: function() {
var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance();
- var enabled = this.$.metricsReportingCheckbox.checked;
+ var enabled = this.$.metricsReportingControl.checked;
browserProxy.setMetricsReportingEnabled(enabled);
},
@@ -142,9 +142,9 @@ Polymer({
// </if>
/** @private */
- onSafeBrowsingExtendedReportingCheckboxTap_: function() {
+ onSafeBrowsingExtendedReportingControlTap_: function() {
var browserProxy = settings.PrivacyPageBrowserProxyImpl.getInstance();
- var enabled = this.$.safeBrowsingExtendedReportingCheckbox.checked;
+ var enabled = this.$.safeBrowsingExtendedReportingControl.checked;
browserProxy.setSafeBrowsingExtendedReportingEnabled(enabled);
},

Powered by Google App Engine
This is Rietveld 408576698