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

Unified Diff: chrome/browser/resources/options/chromeos_accounts_options.js

Issue 6250079: Show user list only to owner (settings->users).... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/chromeos_accounts_options.js
===================================================================
--- chrome/browser/resources/options/chromeos_accounts_options.js (revision 73276)
+++ chrome/browser/resources/options/chromeos_accounts_options.js (working copy)
@@ -33,7 +33,6 @@
// Set up accounts page.
var userList = $('userList');
- options.accounts.UserList.decorate(userList);
var userNameEdit = $('userNameEdit');
options.accounts.UserNameEdit.decorate(userNameEdit);
@@ -41,8 +40,11 @@
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');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698