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

Unified Diff: chrome/browser/resources/settings/people_page/lock_screen.js

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Fix compiler errors, newly revealed. 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/lock_screen.js
diff --git a/chrome/browser/resources/settings/people_page/lock_screen.js b/chrome/browser/resources/settings/people_page/lock_screen.js
index 520669c0dba839584f48cd8fd238d764b3455f8d..315eafd30561dc7516cc7f72e8cb7775ecf549cf 100644
--- a/chrome/browser/resources/settings/people_page/lock_screen.js
+++ b/chrome/browser/resources/settings/people_page/lock_screen.js
@@ -157,9 +157,9 @@ Polymer({
if (newRoute == settings.routes.LOCK_SCREEN &&
this.fingerprintUnlockEnabled_ && this.fingerprintBrowserProxy_) {
this.fingerprintBrowserProxy_.getNumFingerprints().then(
- function(numFingerprints) {
+ numFingerprints => {
this.numFingerprints_ = numFingerprints;
- }.bind(this));
+ });
}
if (this.shouldAskForPassword_(newRoute)) {

Powered by Google App Engine
This is Rietveld 408576698