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

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: 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..ed55f932f8113a7fcefa755fb0c8a1de56bb49f0 100644
--- a/chrome/browser/resources/options/chromeos_accounts_options.js
+++ b/chrome/browser/resources/options/chromeos_accounts_options.js
@@ -41,6 +41,12 @@ 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').style.display = 'block';
kochi 2010/12/20 08:00:18 Could you use CSS class "hidden" for this instead
satorux1 2010/12/20 08:16:15 Good idea. Done.
+ $('ownerUserId').textContent =
+ localStrings.getString('owner_user_id');
+ }
this.addEventListener('visibleChange', this.handleVisibleChange_);

Powered by Google App Engine
This is Rietveld 408576698