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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Resolve conflicts. Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
index 76f7afaece43e0d2e75d8d2399477ab2e574dfe7..ffad7d4c01e2c9922389dd79bb3278f69d949504 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js
@@ -213,14 +213,14 @@ Polymer({
attached: function() {
// Create listener functions.
/** @type {function(!Array<!AutofillManager.AddressEntry>)} */
- var setAddressesListener = function(list) {
+ var setAddressesListener = list => {
this.addresses = list;
- }.bind(this);
+ };
/** @type {function(!Array<!AutofillManager.CreditCardEntry>)} */
- var setCreditCardsListener = function(list) {
+ var setCreditCardsListener = list => {
this.creditCards = list;
- }.bind(this);
+ };
// Remember the bound reference in order to detach.
this.setAddressesListener_ = setAddressesListener;

Powered by Google App Engine
This is Rietveld 408576698