| Index: chrome/browser/resources/options/pref_ui.js
|
| diff --git a/chrome/browser/resources/options/pref_ui.js b/chrome/browser/resources/options/pref_ui.js
|
| index 58d49a79358bdfaa8a08ae8c0ba664b0bed55741..b6f495c0809f5a4867655ba942efbfc18f0286b6 100644
|
| --- a/chrome/browser/resources/options/pref_ui.js
|
| +++ b/chrome/browser/resources/options/pref_ui.js
|
| @@ -138,20 +138,15 @@ cr.define('options', function() {
|
| }
|
| });
|
| },
|
| -
|
| - /**
|
| - * The name of the preference.
|
| - * @type {string}
|
| - */
|
| - get pref() {
|
| - return this.getAttribute('pref');
|
| - },
|
| - set pref(name) {
|
| - this.setAttribute('pref', name);
|
| - }
|
| };
|
|
|
| /**
|
| + * The preference name.
|
| + * @type {string}
|
| + */
|
| + cr.defineProperty(PrefRadio, 'pref', cr.PropertyKind.ATTR);
|
| +
|
| + /**
|
| * The user metric string.
|
| * @type {string}
|
| */
|
| @@ -434,17 +429,6 @@ cr.define('options', function() {
|
| }
|
| });
|
| },
|
| -
|
| - /**
|
| - * The data type for the preference options.
|
| - * @type {string}
|
| - */
|
| - get dataType() {
|
| - return this.getAttribute('dataType');
|
| - },
|
| - set dataType(name) {
|
| - this.setAttribute('dataType', name);
|
| - }
|
| };
|
|
|
| /**
|
| @@ -459,6 +443,12 @@ cr.define('options', function() {
|
| */
|
| cr.defineProperty(PrefSelect, 'metric', cr.PropertyKind.ATTR);
|
|
|
| + /**
|
| + * The data type for the preference options.
|
| + * @type {string}
|
| + */
|
| + cr.defineProperty(PrefSelect, 'dataType', cr.PropertyKind.ATTR);
|
| +
|
| /////////////////////////////////////////////////////////////////////////////
|
| // PrefTextField class:
|
|
|
|
|