| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
| 7 const ArrayDataModel = cr.ui.ArrayDataModel; | 7 const ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 /** @inheritDoc */ | 44 /** @inheritDoc */ |
| 45 initializePage: function() { | 45 initializePage: function() { |
| 46 OptionsPage.prototype.initializePage.call(this); | 46 OptionsPage.prototype.initializePage.call(this); |
| 47 | 47 |
| 48 this.createSavedPasswordsList_(); | 48 this.createSavedPasswordsList_(); |
| 49 this.createPasswordExceptionsList_(); | 49 this.createPasswordExceptionsList_(); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** @inheritDoc */ | 52 /** @inheritDoc */ |
| 53 canShowPage: function() { |
| 54 return !PersonalOptions.disablePasswordManagement(); |
| 55 }, |
| 56 |
| 57 /** @inheritDoc */ |
| 53 didShowPage: function() { | 58 didShowPage: function() { |
| 54 // Updating the password lists may cause a blocking platform dialog pop up | 59 // Updating the password lists may cause a blocking platform dialog pop up |
| 55 // (Mac, Linux), so we delay this operation until the page is shown. | 60 // (Mac, Linux), so we delay this operation until the page is shown. |
| 56 chrome.send('updatePasswordLists'); | 61 chrome.send('updatePasswordLists'); |
| 57 }, | 62 }, |
| 58 | 63 |
| 59 /** | 64 /** |
| 60 * Creates, decorates and initializes the saved passwords list. | 65 * Creates, decorates and initializes the saved passwords list. |
| 61 * @private | 66 * @private |
| 62 */ | 67 */ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 PasswordManager.getInstance().setPasswordExceptionsList_(entries); | 144 PasswordManager.getInstance().setPasswordExceptionsList_(entries); |
| 140 }; | 145 }; |
| 141 | 146 |
| 142 // Export | 147 // Export |
| 143 return { | 148 return { |
| 144 PasswordManager: PasswordManager | 149 PasswordManager: PasswordManager |
| 145 }; | 150 }; |
| 146 | 151 |
| 147 }); | 152 }); |
| 148 | 153 |
| OLD | NEW |