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

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

Issue 1846623002: Remove password-manager-reauthentication flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 4 years, 8 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.passwordManager', function() { 5 cr.define('options.passwordManager', function() {
6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var DeletableItem = options.DeletableItem; 8 /** @const */ var DeletableItem = options.DeletableItem;
9 /** @const */ var List = cr.ui.List; 9 /** @const */ var List = cr.ui.List;
10 10
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 /** 443 /**
444 * Whether passwords can be revealed or not. 444 * Whether passwords can be revealed or not.
445 * @type {boolean} 445 * @type {boolean}
446 * @private 446 * @private
447 */ 447 */
448 showPasswords_: true, 448 showPasswords_: true,
449 449
450 /** @override */ 450 /** @override */
451 decorate: function() { 451 decorate: function() {
452 DeletableItemList.prototype.decorate.call(this); 452 DeletableItemList.prototype.decorate.call(this);
453 Preferences.getInstance().addEventListener(
454 'profile.password_manager_allow_show_passwords',
455 this.onPreferenceChanged_.bind(this));
456 this.addEventListener('focus', this.onFocus_.bind(this)); 453 this.addEventListener('focus', this.onFocus_.bind(this));
457 }, 454 },
458 455
459 /** 456 /**
460 * Listener for changes on the preference. 457 * Listener for changes on the preference.
461 * @param {Event} event The preference update event. 458 * @param {Event} event The preference update event.
462 * @private 459 * @private
463 */ 460 */
464 onPreferenceChanged_: function(event) { 461 onPreferenceChanged_: function(event) {
465 this.showPasswords_ = event.value.value; 462 this.showPasswords_ = event.value.value;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 SHOWN_ORIGIN_FIELD: SHOWN_ORIGIN_FIELD, 545 SHOWN_ORIGIN_FIELD: SHOWN_ORIGIN_FIELD,
549 IS_ANDROID_URI_FIELD: IS_ANDROID_URI_FIELD, 546 IS_ANDROID_URI_FIELD: IS_ANDROID_URI_FIELD,
550 IS_CLICKABLE_FIELD: IS_CLICKABLE_FIELD, 547 IS_CLICKABLE_FIELD: IS_CLICKABLE_FIELD,
551 IS_SECURE_FIELD: IS_SECURE_FIELD, 548 IS_SECURE_FIELD: IS_SECURE_FIELD,
552 USERNAME_FIELD: USERNAME_FIELD, 549 USERNAME_FIELD: USERNAME_FIELD,
553 PASSWORD_FIELD: PASSWORD_FIELD, 550 PASSWORD_FIELD: PASSWORD_FIELD,
554 FEDERATION_FIELD: FEDERATION_FIELD, 551 FEDERATION_FIELD: FEDERATION_FIELD,
555 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD 552 ORIGINAL_INDEX_FIELD: ORIGINAL_INDEX_FIELD
556 }; 553 };
557 }); 554 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698