| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |