| Index: chrome/browser/resources/options/browser_options.js
|
| diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
|
| index c67ef9011adaf3031f373bbea03ce54d4a0bcd07..3f15a0a33590afcd2efe83aa605232a99f8b94b8 100644
|
| --- a/chrome/browser/resources/options/browser_options.js
|
| +++ b/chrome/browser/resources/options/browser_options.js
|
| @@ -17,10 +17,11 @@ cr.define('options', function() {
|
| DEFAULT: 1
|
| };
|
|
|
| - //
|
| - // BrowserOptions class
|
| - // Encapsulated handling of browser options page.
|
| - //
|
| + /**
|
| + * Encapsulated handling of browser options page.
|
| + * @constructor
|
| + * @extends {cr.ui.pageManager.Page}
|
| + */
|
| function BrowserOptions() {
|
| Page.call(this, 'settings', loadTimeData.getString('settingsTitle'),
|
| 'settings');
|
| @@ -1411,16 +1412,25 @@ cr.define('options', function() {
|
| ManageProfileOverlay.showDeleteDialog(this.getCurrentProfile_());
|
| },
|
|
|
| + /**
|
| + * @param {boolean} enabled
|
| + */
|
| setNativeThemeButtonEnabled_: function(enabled) {
|
| var button = $('themes-native-button');
|
| if (button)
|
| button.disabled = !enabled;
|
| },
|
|
|
| + /**
|
| + * @param {boolean} enabled
|
| + */
|
| setThemesResetButtonEnabled_: function(enabled) {
|
| $('themes-reset').disabled = !enabled;
|
| },
|
|
|
| + /**
|
| + * @param {boolean} managed
|
| + */
|
| setAccountPictureManaged_: function(managed) {
|
| var picture = $('account-picture');
|
| if (managed || UIAccountTweaks.loggedInAsGuest()) {
|
| @@ -1452,6 +1462,9 @@ cr.define('options', function() {
|
| }
|
| },
|
|
|
| + /**
|
| + * @param {boolean} managed
|
| + */
|
| setWallpaperManaged_: function(managed) {
|
| var button = $('set-wallpaper');
|
| button.disabled = !!managed;
|
| @@ -1896,7 +1909,7 @@ cr.define('options', function() {
|
| };
|
|
|
| //Forward public APIs to private implementations.
|
| - [
|
| + cr.makePublic(BrowserOptions, [
|
| 'addBluetoothDevice',
|
| 'deleteCurrentProfile',
|
| 'enableCertificateButton',
|
| @@ -1941,14 +1954,8 @@ cr.define('options', function() {
|
| 'updateEasyUnlock',
|
| 'updateManagesSupervisedUsers',
|
| 'updateSearchEngines',
|
| - 'updateStartupPages',
|
| 'updateSyncState',
|
| - ].forEach(function(name) {
|
| - BrowserOptions[name] = function() {
|
| - var instance = BrowserOptions.getInstance();
|
| - return instance[name + '_'].apply(instance, arguments);
|
| - };
|
| - });
|
| + ]);
|
|
|
| if (cr.isChromeOS) {
|
| /**
|
|
|