| Index: chrome/browser/resources/options/chromeos/accounts_options.js
|
| diff --git a/chrome/browser/resources/options/chromeos/accounts_options.js b/chrome/browser/resources/options/chromeos/accounts_options.js
|
| index 27b04fd4cbadf1e802721b005ab9f9bb7c87eebb..26a16acf81144e5d02eca22cc28dfd0aa9d61456 100644
|
| --- a/chrome/browser/resources/options/chromeos/accounts_options.js
|
| +++ b/chrome/browser/resources/options/chromeos/accounts_options.js
|
| @@ -15,8 +15,9 @@ cr.define('options', function() {
|
| * @extends {cr.ui.pageManager.Page}
|
| */
|
| function AccountsOptions(model) {
|
| - Page.call(this, 'accounts', loadTimeData.getString('accountsPageTabTitle'),
|
| - 'accountsPage');
|
| + Page.call(
|
| + this, 'accounts', loadTimeData.getString('accountsPageTabTitle'),
|
| + 'accountsPage');
|
| // Whether to show the whitelist.
|
| this.showWhitelist_ = false;
|
| }
|
| @@ -52,8 +53,9 @@ cr.define('options', function() {
|
|
|
| this.addEventListener('visibleChange', this.handleVisibleChange_);
|
|
|
| - $('useWhitelistCheck').addEventListener('change',
|
| - this.handleUseWhitelistCheckChange_.bind(this));
|
| + $('useWhitelistCheck')
|
| + .addEventListener(
|
| + 'change', this.handleUseWhitelistCheckChange_.bind(this));
|
|
|
| Preferences.getInstance().addEventListener(
|
| $('useWhitelistCheck').pref,
|
| @@ -68,10 +70,9 @@ cr.define('options', function() {
|
| * @private
|
| */
|
| updateControls_: function() {
|
| - $('userList').disabled =
|
| - $('userNameEdit').disabled = !this.showWhitelist_ ||
|
| - AccountsOptions.whitelistIsManaged() ||
|
| - !$('useWhitelistCheck').checked;
|
| + $('userList').disabled = $('userNameEdit').disabled =
|
| + !this.showWhitelist_ || AccountsOptions.whitelistIsManaged() ||
|
| + !$('useWhitelistCheck').checked;
|
| },
|
|
|
| /**
|
| @@ -116,8 +117,8 @@ cr.define('options', function() {
|
| */
|
| handleAddUser_: function(e) {
|
| chrome.send('whitelistUser', [e.user.email, e.user.name]);
|
| - chrome.send('coreOptionsUserMetricsAction',
|
| - ['Options_WhitelistedUser_Add']);
|
| + chrome.send(
|
| + 'coreOptionsUserMetricsAction', ['Options_WhitelistedUser_Add']);
|
| },
|
|
|
| /**
|
| @@ -127,8 +128,8 @@ cr.define('options', function() {
|
| */
|
| handleRemoveUser_: function(e) {
|
| chrome.send('unwhitelistUser', [e.user.username]);
|
| - chrome.send('coreOptionsUserMetricsAction',
|
| - ['Options_WhitelistedUser_Remove']);
|
| + chrome.send(
|
| + 'coreOptionsUserMetricsAction', ['Options_WhitelistedUser_Remove']);
|
| },
|
|
|
| /**
|
| @@ -151,8 +152,6 @@ cr.define('options', function() {
|
|
|
|
|
| // Export
|
| - return {
|
| - AccountsOptions: AccountsOptions
|
| - };
|
| + return {AccountsOptions: AccountsOptions};
|
|
|
| });
|
|
|