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 d32b2d845b10bb0c4e919319ee141963bfee6727..cb951b544fbc310b4c316a592e183e8d87ea243e 100644 |
--- a/chrome/browser/resources/settings/checkbox/checkbox.js |
+++ b/chrome/browser/resources/settings/checkbox/checkbox.js |
@@ -14,31 +14,27 @@ |
* @element cr-settings-checkbox |
*/ |
Polymer({ |
- publish: { |
- /** |
- * The boolean preference to control. |
- * |
- * @attribute pref |
- * @type {Object} |
- * @default null |
- */ |
- pref: null, |
+ is: 'cr-settings-checkbox', |
+ properties: { |
/** |
- * @attribute label |
- * @type {string} |
- * @default '' |
+ * The boolean preference object to control. |
+ * @type {?chrome.settingsPrivate.PrefObject} |
*/ |
- label: '', |
+ pref: Object, |
- /** |
- * @attribute label |
- * @type {string} |
- * @default '' |
- */ |
- subLabel: '', |
+ label: { |
+ type: String, |
+ value: '', |
+ }, |
+ |
+ subLabel: { |
+ type: String, |
+ value: '', |
+ }, |
}, |
+ /** @override */ |
ready: function() { |
this.$.events.forward(this.$.checkbox, ['change']); |
}, |