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

Side by Side Diff: chrome/browser/resources/options/browser_options_profile_list.js

Issue 445003002: Supervised users: UI updates for new-profile-management launch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options.browser_options', function() { 5 cr.define('options.browser_options', function() {
6 /** @const */ var DeletableItem = options.DeletableItem; 6 /** @const */ var DeletableItem = options.DeletableItem;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; 8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
9 9
10 /** 10 /**
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (profileInfo.isCurrentProfile) { 63 if (profileInfo.isCurrentProfile) {
64 displayName = loadTimeData.getStringF('profilesListItemCurrent', 64 displayName = loadTimeData.getStringF('profilesListItemCurrent',
65 profileInfo.name); 65 profileInfo.name);
66 } 66 }
67 nameEl.textContent = displayName; 67 nameEl.textContent = displayName;
68 68
69 if (profileInfo.isSupervised) { 69 if (profileInfo.isSupervised) {
70 var supervisedEl = this.ownerDocument.createElement('div'); 70 var supervisedEl = this.ownerDocument.createElement('div');
71 supervisedEl.className = 'profile-supervised'; 71 supervisedEl.className = 'profile-supervised';
72 supervisedEl.textContent = 72 supervisedEl.textContent =
73 '(' + loadTimeData.getStringF('supervisedUserLabel') + ')'; 73 loadTimeData.getString('supervisedUserLabel');
74 containerEl.appendChild(supervisedEl); 74 containerEl.appendChild(supervisedEl);
75 } 75 }
76 76
77 this.contentElement.appendChild(containerEl); 77 this.contentElement.appendChild(containerEl);
78 78
79 // Ensure that the button cannot be tabbed to for accessibility reasons. 79 // Ensure that the button cannot be tabbed to for accessibility reasons.
80 this.closeButtonElement.tabIndex = -1; 80 this.closeButtonElement.tabIndex = -1;
81 }, 81 },
82 }; 82 };
83 83
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * If false, items in this list will not be deletable. 125 * If false, items in this list will not be deletable.
126 * @private 126 * @private
127 */ 127 */
128 canDeleteItems_: true, 128 canDeleteItems_: true,
129 }; 129 };
130 130
131 return { 131 return {
132 ProfileList: ProfileList 132 ProfileList: ProfileList
133 }; 133 };
134 }); 134 });
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/manage_profile_overlay.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698