summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/options/chromeos_accounts_options.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/resources/options/chromeos_accounts_options.js b/chrome/browser/resources/options/chromeos_accounts_options.js
index 1a978c6..d0d99a2 100644
--- a/chrome/browser/resources/options/chromeos_accounts_options.js
+++ b/chrome/browser/resources/options/chromeos_accounts_options.js
@@ -33,7 +33,6 @@ cr.define('options', function() {
// Set up accounts page.
var userList = $('userList');
- options.accounts.UserList.decorate(userList);
var userNameEdit = $('userNameEdit');
options.accounts.UserNameEdit.decorate(userNameEdit);
@@ -41,8 +40,11 @@ cr.define('options', function() {
userList.disabled =
userNameEdit.disabled = !AccountsOptions.currentUserIsOwner();
- // If the current user is not the owner, show some warning.
- if (!AccountsOptions.currentUserIsOwner()) {
+ // If the current user is not the owner, show some warning,
+ // and do not show the user list.
+ if (AccountsOptions.currentUserIsOwner()) {
+ options.accounts.UserList.decorate(userList);
+ } else {
$('ownerOnlyWarning').classList.remove('hidden');
}