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

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

Issue 1346833003: Lazy init prefs in MD Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/prefs/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2109aba704b116f176e0fb79a4e7f9dc2c25dd2f..d8c1a1f2ededd0b2ea0ec83aa6748a159471f085 100644
--- a/chrome/browser/resources/settings/checkbox/checkbox.js
+++ b/chrome/browser/resources/settings/checkbox/checkbox.js
@@ -24,7 +24,6 @@ Polymer({
pref: {
type: Object,
notify: true,
- value: null
},
inverted: {
@@ -60,10 +59,7 @@ Polymer({
/** @private */
prefValueChanged_: function(prefValue) {
- // prefValue is initially undefined when Polymer initializes pref.
- if (prefValue !== undefined) {
- this.checked = this.getNewValue_(prefValue);
- }
+ this.checked = this.getNewValue_(prefValue);
},
/** @private */
« no previous file with comments | « no previous file | chrome/browser/resources/settings/prefs/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698