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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_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/bluetooth_page/bluetooth_device_dialog.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
index 674f161c4d321c125e6ee52c2e5dbaa87ab168a0..b88c6f37b7f7c4ade60523a5e7f619dfcd8c8de7 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js
@@ -240,7 +240,7 @@ settings.BluetoothPairDeviceBehavior = {
else if (pairing == PairingEventType.REQUEST_PASSKEY)
options.passkey = parseInt(this.$$('#passkey').value, 10);
}
- this.bluetoothPrivate.setPairingResponse(options, function() {
+ this.bluetoothPrivate.setPairingResponse(options, () => {
if (chrome.runtime.lastError) {
// TODO(stevenjb): Show error.
console.error(
@@ -249,7 +249,7 @@ settings.BluetoothPairDeviceBehavior = {
': Error: ' + chrome.runtime.lastError.message);
}
this.close();
- }.bind(this));
+ });
this.fire('response', options);
},

Powered by Google App Engine
This is Rietveld 408576698