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

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

Issue 1287913005: Refactor prefs.js for MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add return after switch for non-clang Created 5 years, 4 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/checkbox/checkbox.js
diff --git a/chrome/browser/resources/settings/checkbox/checkbox.js b/chrome/browser/resources/settings/checkbox/checkbox.js
index d4bdeb4fc378da44e7864b61c7b6c070f9f80383..d6514fc9bd04a060be5c2365a3db3642a7981283 100644
--- a/chrome/browser/resources/settings/checkbox/checkbox.js
+++ b/chrome/browser/resources/settings/checkbox/checkbox.js
@@ -68,7 +68,7 @@ Polymer({
/** @private */
checkedChanged_: function() {
if (this.pref) {
- this.pref.value = this.getNewValue_(this.checked);
+ this.set('pref.value', this.getNewValue_(this.checked));
}
},

Powered by Google App Engine
This is Rietveld 408576698