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

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

Issue 2578063002: Remove dead code in password_manager.js (Closed)
Patch Set: Created 4 years 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 | « no previous file | 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 break; 228 break;
229 } 229 }
230 } 230 }
231 } 231 }
232 232
233 // Reveal the password in the UI. 233 // Reveal the password in the UI.
234 var item = this.savedPasswordsList_.getListItemByIndex(index); 234 var item = this.savedPasswordsList_.getListItemByIndex(index);
235 item.showPassword(password); 235 item.showPassword(password);
236 }, 236 },
237 237
238 /**
239 * @param {boolean} visible Whether the link should be visible.
240 * @private
241 */
242 setManageAccountLinkVisibility_: function(visible) {
243 $('manage-passwords-span').hidden = !visible;
244 },
245
246 /** @private */ 238 /** @private */
247 showImportExportButton_: function() { 239 showImportExportButton_: function() {
248 $('password-manager-import-export').hidden = false; 240 $('password-manager-import-export').hidden = false;
249 }, 241 },
250 }; 242 };
251 243
252 /** 244 /**
253 * Removes a saved password. 245 * Removes a saved password.
254 * @param {number} rowIndex indicating the row to remove. 246 * @param {number} rowIndex indicating the row to remove.
255 */ 247 */
(...skipping 22 matching lines...) Expand all
278 'showImportExportButton', 270 'showImportExportButton',
279 'showPassword', 271 'showPassword',
280 ]); 272 ]);
281 273
282 // Export 274 // Export
283 return { 275 return {
284 PasswordManager: PasswordManager 276 PasswordManager: PasswordManager
285 }; 277 };
286 278
287 }); 279 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698