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

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

Issue 5965003: Show warning text in the user settings page for non-owner users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 10 years 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 349f15b45cb97f43392e258e4a448bddaf98bd32..1a978c68ac68a232d052cb5d7b0c22905fa74f5c 100644
--- a/chrome/browser/resources/options/chromeos_accounts_options.js
+++ b/chrome/browser/resources/options/chromeos_accounts_options.js
@@ -41,6 +41,10 @@ cr.define('options', function() {
userList.disabled =
userNameEdit.disabled = !AccountsOptions.currentUserIsOwner();
+ // If the current user is not the owner, show some warning.
+ if (!AccountsOptions.currentUserIsOwner()) {
+ $('ownerOnlyWarning').classList.remove('hidden');
+ }
this.addEventListener('visibleChange', this.handleVisibleChange_);

Powered by Google App Engine
This is Rietveld 408576698