Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/browser/resources/options2/password_manager.js

Issue 9560005: [uber page] Merge advanced options page into browser options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase again. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/options_page.css ('k') | chrome/browser/resources/options2/search_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698