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

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

Issue 1131793002: Upgrade checkbox, pref-tracker, and prefs to 0.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@crelements
Patch Set: update settings_resources.grd Created 5 years, 7 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 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']);
},

Powered by Google App Engine
This is Rietveld 408576698