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_); |