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)); |