| 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 OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
| 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 | 8 |
| 9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
| 10 // PasswordManager class: | 10 // PasswordManager class: |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Encapsulated handling of password and exceptions page. | 13 * Encapsulated handling of password and exceptions page. |
| 14 * @constructor | 14 * @constructor |
| 15 */ | 15 */ |
| 16 function PasswordManager() { | 16 function PasswordManager() { |
| 17 this.activeNavTab = null; | 17 this.activeNavTab = null; |
| 18 OptionsPage.call(this, | 18 OptionsPage.call(this, |
| 19 'passwords', | 19 'passwords', |
| 20 templateData.passwordsPageTabTitle, | 20 loadTimeData.getString('passwordsPageTabTitle'), |
| 21 'password-manager'); | 21 'password-manager'); |
| 22 } | 22 } |
| 23 | 23 |
| 24 cr.addSingletonGetter(PasswordManager); | 24 cr.addSingletonGetter(PasswordManager); |
| 25 | 25 |
| 26 PasswordManager.prototype = { | 26 PasswordManager.prototype = { |
| 27 __proto__: OptionsPage.prototype, | 27 __proto__: OptionsPage.prototype, |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * The saved passwords list. | 30 * The saved passwords list. |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 PasswordManager.setPasswordExceptionsList = function(entries) { | 221 PasswordManager.setPasswordExceptionsList = function(entries) { |
| 222 PasswordManager.getInstance().setPasswordExceptionsList_(entries); | 222 PasswordManager.getInstance().setPasswordExceptionsList_(entries); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 // Export | 225 // Export |
| 226 return { | 226 return { |
| 227 PasswordManager: PasswordManager | 227 PasswordManager: PasswordManager |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 }); | 230 }); |
| OLD | NEW |