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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_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/certificate_manager_page/certificate_password_decryption_dialog.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
index cdc846e93b4a6db4340de8aad8903deddaacf9fd..20ebcb9f4db18fdb2ee39a65deabe00ac6a0fa2c 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_decryption_dialog.js
@@ -39,13 +39,12 @@ Polymer({
onOkTap_: function() {
this.browserProxy_.importPersonalCertificatePasswordSelected(this.password_)
.then(
- function() {
+ () => {
/** @type {!CrDialogElement} */ (this.$.dialog).close();
- }.bind(this),
- /** @param {!CertificatesError} error */
- function(error) {
+ },
+ error => {
/** @type {!CrDialogElement} */ (this.$.dialog).close();
this.fire('certificates-error', {error: error, anchor: null});
- }.bind(this));
+ });
},
});

Powered by Google App Engine
This is Rietveld 408576698