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

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

Issue 2458043002: Fix Password Manager Performance Issues (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/options/password_manager.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */ 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 /** 103 /**
104 * Creates, decorates and initializes the saved passwords list. 104 * Creates, decorates and initializes the saved passwords list.
105 * @private 105 * @private
106 */ 106 */
107 createSavedPasswordsList_: function() { 107 createSavedPasswordsList_: function() {
108 var savedPasswordsList = $('saved-passwords-list'); 108 var savedPasswordsList = $('saved-passwords-list');
109 options.passwordManager.PasswordsList.decorate(savedPasswordsList); 109 options.passwordManager.PasswordsList.decorate(savedPasswordsList);
110 this.savedPasswordsList_ = assertInstanceof(savedPasswordsList, 110 this.savedPasswordsList_ = assertInstanceof(savedPasswordsList,
111 options.DeletableItemList); 111 options.DeletableItemList);
112 this.savedPasswordsList_.autoExpands = true;
113 }, 112 },
114 113
115 /** 114 /**
116 * Creates, decorates and initializes the password exceptions list. 115 * Creates, decorates and initializes the password exceptions list.
117 * @private 116 * @private
118 */ 117 */
119 createPasswordExceptionsList_: function() { 118 createPasswordExceptionsList_: function() {
120 var passwordExceptionsList = $('password-exceptions-list'); 119 var passwordExceptionsList = $('password-exceptions-list');
121 options.passwordManager.PasswordExceptionsList.decorate( 120 options.passwordManager.PasswordExceptionsList.decorate(
122 passwordExceptionsList); 121 passwordExceptionsList);
123 this.passwordExceptionsList_ = assertInstanceof(passwordExceptionsList, 122 this.passwordExceptionsList_ = assertInstanceof(passwordExceptionsList,
124 options.DeletableItemList); 123 options.DeletableItemList);
125 this.passwordExceptionsList_.autoExpands = true;
126 }, 124 },
127 125
128 /** 126 /**
129 * Handles search query changes. 127 * Handles search query changes.
130 * @param {!Event} e The event object. 128 * @param {!Event} e The event object.
131 * @private 129 * @private
132 */ 130 */
133 handleSearchQueryChange_: function(e) { 131 handleSearchQueryChange_: function(e) {
134 if (this.queryDelayTimerId_) 132 if (this.queryDelayTimerId_)
135 window.clearTimeout(this.queryDelayTimerId_); 133 window.clearTimeout(this.queryDelayTimerId_);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 'showImportExportButton', 320 'showImportExportButton',
323 'showPassword', 321 'showPassword',
324 ]); 322 ]);
325 323
326 // Export 324 // Export
327 return { 325 return {
328 PasswordManager: PasswordManager 326 PasswordManager: PasswordManager
329 }; 327 };
330 328
331 }); 329 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/password_manager.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698