Chromium Code Reviews| 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 a4faaa6e8239484d7fbc8762d9d94fb45e706aac..554cb221ce94b09acabeb70f91a32a535d14a419 100644 |
| --- a/chrome/browser/resources/options/chromeos/accounts_options.js |
| +++ b/chrome/browser/resources/options/chromeos/accounts_options.js |
| @@ -41,17 +41,15 @@ cr.define('options', function() { |
| options.accounts.UserNameEdit.decorate(userNameEdit); |
| userNameEdit.addEventListener('add', this.handleAddUser_); |
| - // If the current user is not the owner, show some warning, |
| - // and do not show the user list. |
| + // If the current user is not the owner, do not show the user list. |
| + // If the current user is not the owner or the device is enterprise |
|
James Hawkins
2012/10/24 15:14:41
nit: Insert a comma: "not the owner, or the device
bartfab (slow)
2012/10/24 17:33:51
Done.
|
| + // managed, show a warning that settings cannot be modified. |
| this.showWhitelist_ = UIAccountTweaks.currentUserIsOwner(); |
| if (this.showWhitelist_) { |
| options.accounts.UserList.decorate(userList); |
| } else { |
| - if (!AccountsOptions.whitelistIsManaged()) { |
| - $('ownerOnlyWarning').hidden = false; |
| - } else { |
| - this.managed = true; |
| - } |
| + $('ownerOnlyWarning').hidden = false; |
| + this.managed = AccountsOptions.whitelistIsManaged(); |
| } |
| this.addEventListener('visibleChange', this.handleVisibleChange_); |