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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_list.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/certificate_manager_page/certificate_list.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
index 83cedff7d92122fe122774d5eee021b5d47bb96e..edf92a739a82d43f91a1bd010df95a05cabe0bcc 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
@@ -138,14 +138,14 @@ Polymer({
var browserProxy = settings.CertificatesBrowserProxyImpl.getInstance();
if (this.certificateType == CertificateType.PERSONAL) {
browserProxy.importPersonalCertificate(useHardwareBacked)
- .then(function(showPasswordPrompt) {
+ .then(showPasswordPrompt => {
if (showPasswordPrompt)
this.dispatchImportActionEvent_(null, anchor);
- }.bind(this), this.onRejected_.bind(this, anchor));
+ }, this.onRejected_.bind(this, anchor));
} else if (this.certificateType == CertificateType.CA) {
- browserProxy.importCaCertificate().then(function(certificateName) {
+ browserProxy.importCaCertificate().then(certificateName => {
this.dispatchImportActionEvent_({name: certificateName}, anchor);
- }.bind(this), this.onRejected_.bind(this, anchor));
+ }, this.onRejected_.bind(this, anchor));
} else if (this.certificateType == CertificateType.SERVER) {
browserProxy.importServerCertificate().catch(
this.onRejected_.bind(this, anchor));

Powered by Google App Engine
This is Rietveld 408576698