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

Unified Diff: chrome/browser/resources/options/chromeos/accounts_options.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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/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};
});

Powered by Google App Engine
This is Rietveld 408576698