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

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

Issue 8394004: [Multi Profile] On Personal Options page, users list should display avatar icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/personal_options.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/personal_options_profile_list.js
diff --git a/chrome/browser/resources/options/personal_options_profile_list.js b/chrome/browser/resources/options/personal_options_profile_list.js
index 0b67df08785b8a219224bd96c82cdafff763ed93..755150c44caaff6788b5a092ba4eb781adaad99e 100644
--- a/chrome/browser/resources/options/personal_options_profile_list.js
+++ b/chrome/browser/resources/options/personal_options_profile_list.js
@@ -48,10 +48,15 @@ cr.define('options.personal_options', function() {
var profileInfo = this.profileInfo_;
- var nameEl = this.contentElement;
- nameEl.className = 'profile-item';
+ var iconEl = this.ownerDocument.createElement('img');
+ iconEl.className = 'profile-img';
+ iconEl.src = profileInfo.iconURL;
+ this.contentElement.appendChild(iconEl);
+
+ var nameEl = this.ownerDocument.createElement('div');
if (profileInfo.isCurrentProfile)
nameEl.classList.add('profile-item-current');
+ this.contentElement.appendChild(nameEl);
var displayName = profileInfo.name;
if (profileInfo.isCurrentProfile)
« no previous file with comments | « chrome/browser/resources/options/personal_options.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698