| 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 /** @const */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
| 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
| 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 }; | 171 }; |
| 172 entries = entries.filter(filter); | 172 entries = entries.filter(filter); |
| 173 } | 173 } |
| 174 this.savedPasswordsList_.dataModel = new ArrayDataModel(entries); | 174 this.savedPasswordsList_.dataModel = new ArrayDataModel(entries); |
| 175 this.updateListVisibility_(this.savedPasswordsList_); | 175 this.updateListVisibility_(this.savedPasswordsList_); |
| 176 }, | 176 }, |
| 177 | 177 |
| 178 /** | 178 /** |
| 179 * Updates the data model for the password exceptions list with the values | 179 * Updates the data model for the password exceptions list with the values |
| 180 * from |entries|. | 180 * from |entries|. |
| 181 * @param {Array} entries The list of password exception data. | 181 * @param {!Array} entries The list of password exception data. |
| 182 */ | 182 */ |
| 183 setPasswordExceptionsList_: function(entries) { | 183 setPasswordExceptionsList_: function(entries) { |
| 184 this.passwordExceptionsList_.dataModel = new ArrayDataModel(entries); | 184 this.passwordExceptionsList_.dataModel = new ArrayDataModel(entries); |
| 185 this.updateListVisibility_(this.passwordExceptionsList_); | 185 this.updateListVisibility_(this.passwordExceptionsList_); |
| 186 }, | 186 }, |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * Reveals the password for a saved password entry. This is called by the | 189 * Reveals the password for a saved password entry. This is called by the |
| 190 * backend after it has authenticated the user. | 190 * backend after it has authenticated the user. |
| 191 * @param {number} index The original index of the entry in the model. | 191 * @param {number} index The original index of the entry in the model. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 return instance[name + '_'].apply(instance, arguments); | 242 return instance[name + '_'].apply(instance, arguments); |
| 243 }; | 243 }; |
| 244 }); | 244 }); |
| 245 | 245 |
| 246 // Export | 246 // Export |
| 247 return { | 247 return { |
| 248 PasswordManager: PasswordManager | 248 PasswordManager: PasswordManager |
| 249 }; | 249 }; |
| 250 | 250 |
| 251 }); | 251 }); |
| OLD | NEW |