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

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

Issue 222143002: Mark supervised users in the "Users" list in about:settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #999 instead of gray. Created 6 years, 8 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', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator;
10 10
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 }, 1184 },
1185 1185
1186 /** 1186 /**
1187 * Adds all |profiles| to the list. 1187 * Adds all |profiles| to the list.
1188 * @param {Array.<Object>} profiles An array of profile info objects. 1188 * @param {Array.<Object>} profiles An array of profile info objects.
1189 * each object is of the form: 1189 * each object is of the form:
1190 * profileInfo = { 1190 * profileInfo = {
1191 * name: "Profile Name", 1191 * name: "Profile Name",
1192 * iconURL: "chrome://path/to/icon/image", 1192 * iconURL: "chrome://path/to/icon/image",
1193 * filePath: "/path/to/profile/data/on/disk", 1193 * filePath: "/path/to/profile/data/on/disk",
1194 * isCurrentProfile: false 1194 * isCurrentProfile: false,
1195 * isManaged: false
1195 * }; 1196 * };
1196 * @private 1197 * @private
1197 */ 1198 */
1198 setProfilesInfo_: function(profiles) { 1199 setProfilesInfo_: function(profiles) {
1199 this.setProfileViewSingle_(profiles.length); 1200 this.setProfileViewSingle_(profiles.length);
1200 // add it to the list, even if the list is hidden so we can access it 1201 // add it to the list, even if the list is hidden so we can access it
1201 // later. 1202 // later.
1202 $('profiles-list').dataModel = new ArrayDataModel(profiles); 1203 $('profiles-list').dataModel = new ArrayDataModel(profiles);
1203 1204
1204 // Received new data. If showing the "manage" overlay, keep it up to 1205 // Received new data. If showing the "manage" overlay, keep it up to
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 BrowserOptions.getLoggedInUsername = function() { 1729 BrowserOptions.getLoggedInUsername = function() {
1729 return BrowserOptions.getInstance().username_; 1730 return BrowserOptions.getInstance().username_;
1730 }; 1731 };
1731 } 1732 }
1732 1733
1733 // Export 1734 // Export
1734 return { 1735 return {
1735 BrowserOptions: BrowserOptions 1736 BrowserOptions: BrowserOptions
1736 }; 1737 };
1737 }); 1738 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.css ('k') | chrome/browser/resources/options/browser_options_profile_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698