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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_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_encryption_dialog.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js
index ed74927c56a385133e8d734b3ef5cf8c14537451..d6ee1fb48b100ac44445f697de45e8aa0e5bbb2c 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js
@@ -48,14 +48,13 @@ Polymer({
onOkTap_: function() {
this.browserProxy_.exportPersonalCertificatePasswordSelected(this.password_)
.then(
- function() {
+ () => {
this.$.dialog.close();
- }.bind(this),
- /** @param {!CertificatesError} error */
- function(error) {
+ },
+ error => {
this.$.dialog.close();
this.fire('certificates-error', {error: error, anchor: null});
- }.bind(this));
+ });
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698