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

Unified Diff: chrome/browser/resources/settings/internet_page/network_siminfo.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/internet_page/network_siminfo.js
diff --git a/chrome/browser/resources/settings/internet_page/network_siminfo.js b/chrome/browser/resources/settings/internet_page/network_siminfo.js
index 06a1c3c312d1a3a8b91b15d7811882435b3e08d2..3bf92e8636611309c99ab9d26eb1b699ea6bbe35 100644
--- a/chrome/browser/resources/settings/internet_page/network_siminfo.js
+++ b/chrome/browser/resources/settings/internet_page/network_siminfo.js
@@ -145,7 +145,7 @@ Polymer({
currentPin: pin,
requirePin: this.sendSimLockEnabled_,
});
- this.networkingPrivate.setCellularSimState(guid, simState, function() {
+ this.networkingPrivate.setCellularSimState(guid, simState, () => {
if (chrome.runtime.lastError) {
this.error_ = ErrorType.INCORRECT_PIN;
this.$.enterPin.inputElement.select();
@@ -153,7 +153,7 @@ Polymer({
this.error_ = ErrorType.NONE;
this.$.enterPinDialog.close();
}
- }.bind(this));
+ });
},
/**
@@ -188,7 +188,7 @@ Polymer({
currentPin: this.$.changePinOld.value,
newPin: newPin
});
- this.networkingPrivate.setCellularSimState(guid, simState, function() {
+ this.networkingPrivate.setCellularSimState(guid, simState, () => {
if (chrome.runtime.lastError) {
this.error_ = ErrorType.INCORRECT_PIN;
this.$.changePinOld.inputElement.select();
@@ -196,7 +196,7 @@ Polymer({
this.error_ = ErrorType.NONE;
this.$.changePinDialog.close();
}
- }.bind(this));
+ });
},
/**
@@ -222,7 +222,7 @@ Polymer({
if (!this.validatePin_(pin))
return;
- this.networkingPrivate.unlockCellularSim(guid, pin, '', function() {
+ this.networkingPrivate.unlockCellularSim(guid, pin, '', () => {
if (chrome.runtime.lastError) {
this.error_ = ErrorType.INCORRECT_PIN;
this.$.unlockPin.inputElement.select();
@@ -230,7 +230,7 @@ Polymer({
this.error_ = ErrorType.NONE;
this.$.unlockPinDialog.close();
}
- }.bind(this));
+ });
},
/** @private */
@@ -256,7 +256,7 @@ Polymer({
if (!this.validatePin_(pin, this.$.unlockPin2.value))
return;
- this.networkingPrivate.unlockCellularSim(guid, pin, puk, function() {
+ this.networkingPrivate.unlockCellularSim(guid, pin, puk, () => {
if (chrome.runtime.lastError) {
this.error_ = ErrorType.INCORRECT_PUK;
this.$.unlockPuk.inputElement.select();
@@ -264,7 +264,7 @@ Polymer({
this.error_ = ErrorType.NONE;
this.$.unlockPukDialog.close();
}
- }.bind(this));
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698