| 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..75ae23039dc9e9dc860e1bb2a310ddc9dc4091a0 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}
|
| */
|
| @@ -57,11 +57,14 @@ cr.define('options.browser_options', function() {
|
| iconEl.style.content = getProfileAvatarIcon(profileInfo.iconURL);
|
| this.contentElement.appendChild(iconEl);
|
|
|
| + var containerEl = this.ownerDocument.createElement('div');
|
| + containerEl.className = 'profile-container';
|
| +
|
| 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,
|
|
|