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

Unified Diff: chrome/browser/resources/settings/people_page/people_page.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/people_page/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index a083b6fcb1296aa3a149ca3160f162ec8a81ad0f..1b1dec616e9eabf1e04c32a777073a39de9270a0 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -163,9 +163,9 @@ Polymer({
settings.navigateToPreviousRoute();
} else {
this.showDisconnectDialog_ = true;
- this.async(function() {
+ this.async(() => {
this.$$('#disconnectDialog').showModal();
- }.bind(this));
+ });
}
} else if (this.showDisconnectDialog_) {
this.$$('#disconnectDialog').close();
@@ -291,9 +291,9 @@ Polymer({
// browser is closed after the sign out. Otherwise, the navigation will be
// finshed during session restore if the browser is closed before the async
// callback executed.
- listenOnce(this, 'signout-dialog-closed', function() {
+ listenOnce(this, 'signout-dialog-closed', () => {
this.syncBrowserProxy_.signOut(deleteProfile);
- }.bind(this));
+ });
this.$$('#disconnectDialog').close();
},

Powered by Google App Engine
This is Rietveld 408576698