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 OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
7 const ArrayDataModel = cr.ui.ArrayDataModel; | 7 const ArrayDataModel = cr.ui.ArrayDataModel; |
8 | 8 |
9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
10 // PasswordManager class: | 10 // PasswordManager class: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 $('password-search-box').addEventListener('search', | 65 $('password-search-box').addEventListener('search', |
66 this.handleSearchQueryChange_.bind(this)); | 66 this.handleSearchQueryChange_.bind(this)); |
67 | 67 |
68 this.createSavedPasswordsList_(); | 68 this.createSavedPasswordsList_(); |
69 this.createPasswordExceptionsList_(); | 69 this.createPasswordExceptionsList_(); |
70 }, | 70 }, |
71 | 71 |
72 /** @inheritDoc */ | 72 /** @inheritDoc */ |
73 canShowPage: function() { | 73 canShowPage: function() { |
74 return !AdvancedOptions.GuestModeActive(); | 74 return !BrowserOptions.guestModeActive(); |
75 }, | 75 }, |
76 | 76 |
77 /** @inheritDoc */ | 77 /** @inheritDoc */ |
78 didShowPage: function() { | 78 didShowPage: function() { |
79 // Updating the password lists may cause a blocking platform dialog pop up | 79 // Updating the password lists may cause a blocking platform dialog pop up |
80 // (Mac, Linux), so we delay this operation until the page is shown. | 80 // (Mac, Linux), so we delay this operation until the page is shown. |
81 chrome.send('updatePasswordLists'); | 81 chrome.send('updatePasswordLists'); |
82 $('password-search-box').focus(); | 82 $('password-search-box').focus(); |
83 }, | 83 }, |
84 | 84 |
(...skipping 136 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 |