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

Unified Diff: chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.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/easy_unlock_turn_off_dialog.js
diff --git a/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js b/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js
index 76d2d6968af8ea4d5b6accb53ab1c91c9879849a..4de349672d7340c64920234006a9198d38e693f2 100644
--- a/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js
+++ b/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js
@@ -47,16 +47,16 @@ Polymer({
'easy-unlock-enabled-status',
this.handleEasyUnlockEnabledStatusChanged_.bind(this));
- this.addWebUIListener('easy-unlock-turn-off-flow-status', function(status) {
+ this.addWebUIListener('easy-unlock-turn-off-flow-status', status => {
this.status_ = status;
- }.bind(this));
+ });
// Since the dialog text depends on the status, defer opening until we have
// retrieved the turn off status to prevent UI flicker.
- this.getTurnOffStatus_().then(function(status) {
+ this.getTurnOffStatus_().then(status => {
this.status_ = status;
this.$.dialog.showModal();
- }.bind(this));
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698