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

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

Issue 6380015: Fix ChromeOS users list multiple X problem. (Closed) Base URL: svn://svn.chromium.org/chrome/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 | « chrome/browser/resources/options/chromeos_accounts_options_page.css ('k') | 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_user_list.js
diff --git a/chrome/browser/resources/options/chromeos_accounts_user_list.js b/chrome/browser/resources/options/chromeos_accounts_user_list.js
index 36f565fa12ee23af0e257cfcd09454af4dae795b..cdcab4e6b04c241a451c5ae0c5ad3b0539af6920 100644
--- a/chrome/browser/resources/options/chromeos_accounts_user_list.js
+++ b/chrome/browser/resources/options/chromeos_accounts_user_list.js
@@ -173,13 +173,17 @@ cr.define('options.accounts', function() {
localStrings.getStringF('username_format', this.user.name) :
this.user.name;
+ var emailNameBlock = this.ownerDocument.createElement('div');
+ emailNameBlock.className = 'user-email-name-block';
+ emailNameBlock.appendChild(labelEmail);
+ emailNameBlock.appendChild(labelName);
+
this.appendChild(icon);
- this.appendChild(labelEmail);
- this.appendChild(labelName);
+ this.appendChild(emailNameBlock);
if (!this.user.owner) {
var removeButton = this.ownerDocument.createElement('button');
- removeButton.className = 'remove-user-button';
+ removeButton.className = 'raw-button remove-user-button';
James Hawkins 2011/01/25 23:10:33 nit: Please use two classList.add(X) instead.
xiyuan 2011/01/25 23:27:29 Done.
this.appendChild(removeButton);
}
}
« no previous file with comments | « chrome/browser/resources/options/chromeos_accounts_options_page.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698