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

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

Issue 552883002: Compile chrome://settings, part 4: 149 proper errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_2
Patch Set: fixed assert Created 6 years, 3 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
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options.js ('k') | chrome/browser/resources/options/password_manager_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698