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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.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_subentry.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
index 9c858be8b982beedb88fb47889af582dccdd2caa..fafc458a0b0688ea54bcf52cd55393f2960bcb5d 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
@@ -107,11 +107,9 @@ Polymer({
onExportTap_: function(event) {
this.closePopupMenu_();
if (this.certificateType == CertificateType.PERSONAL) {
- this.browserProxy_.exportPersonalCertificate(this.model.id)
- .then(function() {
- this.dispatchCertificateActionEvent_(
- CertificateAction.EXPORT_PERSONAL);
- }.bind(this), this.onRejected_.bind(this));
+ this.browserProxy_.exportPersonalCertificate(this.model.id).then(() => {
+ this.dispatchCertificateActionEvent_(CertificateAction.EXPORT_PERSONAL);
+ }, this.onRejected_.bind(this));
} else {
this.browserProxy_.exportCertificate(this.model.id);
}

Powered by Google App Engine
This is Rietveld 408576698