Index: chrome/browser/resources/options/browser_options_profile_list.js |
diff --git a/chrome/browser/resources/options/browser_options_profile_list.js b/chrome/browser/resources/options/browser_options_profile_list.js |
index a51b5b7bfd0ee7d79e20d5b37e46d48a807e32e3..429780ede632a32dc16a9296bc2d735e7b39a452 100644 |
--- a/chrome/browser/resources/options/browser_options_profile_list.js |
+++ b/chrome/browser/resources/options/browser_options_profile_list.js |
@@ -9,7 +9,7 @@ cr.define('options.browser_options', function() { |
/** |
* Creates a new profile list item. |
- * @param {Object} profileInfo The profile this item respresents. |
+ * @param {Object} profileInfo The profile this item represents. |
* @constructor |
* @extends {cr.ui.DeletableItem} |
*/ |
@@ -52,16 +52,19 @@ cr.define('options.browser_options', function() { |
var profileInfo = this.profileInfo_; |
+ var containerEl = this.ownerDocument.createElement('div'); |
+ containerEl.className = 'profile-container'; |
+ |
var iconEl = this.ownerDocument.createElement('img'); |
iconEl.className = 'profile-img'; |
iconEl.style.content = getProfileAvatarIcon(profileInfo.iconURL); |
- this.contentElement.appendChild(iconEl); |
+ containerEl.appendChild(iconEl); |
var nameEl = this.ownerDocument.createElement('div'); |
nameEl.className = 'profile-name'; |
if (profileInfo.isCurrentProfile) |
nameEl.classList.add('profile-item-current'); |
- this.contentElement.appendChild(nameEl); |
+ containerEl.appendChild(nameEl); |
var displayName = profileInfo.name; |
if (profileInfo.isCurrentProfile) { |
@@ -70,6 +73,16 @@ cr.define('options.browser_options', function() { |
} |
nameEl.textContent = displayName; |
+ if (profileInfo.isManaged) { |
+ var supervisedEl = this.ownerDocument.createElement('div'); |
+ supervisedEl.className = 'profile-supervised'; |
+ supervisedEl.textContent = |
+ '(' + loadTimeData.getStringF('managedUserLabel') + ')'; |
+ containerEl.appendChild(supervisedEl); |
+ } |
+ |
+ this.contentElement.appendChild(containerEl); |
+ |
// Ensure that the button cannot be tabbed to for accessibility reasons. |
this.closeButtonElement.tabIndex = -1; |
}, |
@@ -116,7 +129,7 @@ cr.define('options.browser_options', function() { |
}, |
/** |
- * If false, items in this list will not be deltable. |
+ * If false, items in this list will not be deletable. |
* @private |
*/ |
canDeleteItems_: true, |