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

Unified Diff: chrome/browser/resources/settings/people_page/setup_fingerprint_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/setup_fingerprint_dialog.js
diff --git a/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.js b/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.js
index e1922890789b9711cadc1100a50461c4e8581137..1f98c6dcf5ec6d9ebe94bcf080d4a666cc3909fb 100644
--- a/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.js
+++ b/chrome/browser/resources/settings/people_page/setup_fingerprint_dialog.js
@@ -221,9 +221,9 @@ Polymer({
switch (scanResult) {
case settings.FingerprintResultType.SUCCESS:
this.problemMessage_ = '';
- this.tapSensorMessageTimeoutId_ = setTimeout(function() {
+ this.tapSensorMessageTimeoutId_ = setTimeout(() => {
this.problemMessage_ = this.i18n('configureFingerprintLiftFinger');
- }.bind(this), SHOW_TAP_SENSOR_MESSAGE_DELAY_MS);
+ }, SHOW_TAP_SENSOR_MESSAGE_DELAY_MS);
break;
case settings.FingerprintResultType.PARTIAL:
this.problemMessage_ = this.i18n('configureFingerprintPartialData');

Powered by Google App Engine
This is Rietveld 408576698