| 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.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
| 9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 showSingleProfileView || OptionsPage.isSettingsApp(); | 1467 showSingleProfileView || OptionsPage.isSettingsApp(); |
| 1468 $('profiles-delete').textContent = showSingleProfileView ? | 1468 $('profiles-delete').textContent = showSingleProfileView ? |
| 1469 loadTimeData.getString('profilesDeleteSingle') : | 1469 loadTimeData.getString('profilesDeleteSingle') : |
| 1470 loadTimeData.getString('profilesDelete'); | 1470 loadTimeData.getString('profilesDelete'); |
| 1471 if (OptionsPage.isSettingsApp()) | 1471 if (OptionsPage.isSettingsApp()) |
| 1472 $('profiles-app-list-switch').hidden = showSingleProfileView; | 1472 $('profiles-app-list-switch').hidden = showSingleProfileView; |
| 1473 }, | 1473 }, |
| 1474 | 1474 |
| 1475 /** | 1475 /** |
| 1476 * Adds all |profiles| to the list. | 1476 * Adds all |profiles| to the list. |
| 1477 * @param {Array.<!options.Profile>} profiles An array of profile info | 1477 * @param {Array<!options.Profile>} profiles An array of profile info |
| 1478 * objects. | 1478 * objects. |
| 1479 * @private | 1479 * @private |
| 1480 */ | 1480 */ |
| 1481 setProfilesInfo_: function(profiles) { | 1481 setProfilesInfo_: function(profiles) { |
| 1482 this.setProfileViewSingle_(profiles.length); | 1482 this.setProfileViewSingle_(profiles.length); |
| 1483 // add it to the list, even if the list is hidden so we can access it | 1483 // add it to the list, even if the list is hidden so we can access it |
| 1484 // later. | 1484 // later. |
| 1485 $('profiles-list').dataModel = new ArrayDataModel(profiles); | 1485 $('profiles-list').dataModel = new ArrayDataModel(profiles); |
| 1486 | 1486 |
| 1487 // Received new data. If showing the "manage" overlay, keep it up to | 1487 // Received new data. If showing the "manage" overlay, keep it up to |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2249 } | 2249 } |
| 2250 button.textContent = loadTimeData.getString(strId); | 2250 button.textContent = loadTimeData.getString(strId); |
| 2251 }; | 2251 }; |
| 2252 } | 2252 } |
| 2253 | 2253 |
| 2254 // Export | 2254 // Export |
| 2255 return { | 2255 return { |
| 2256 BrowserOptions: BrowserOptions | 2256 BrowserOptions: BrowserOptions |
| 2257 }; | 2257 }; |
| 2258 }); | 2258 }); |
| OLD | NEW |