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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js

Issue 1815733004: MD Settings: Certificate manager, hooking up all dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@certificates_basic_ui
Patch Set: Address comments + rebase- Created 4 years, 9 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_delete_confirmation_dialog.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js
index e9da85e66c1baa85ebfeaebe59aae5d8a69d1036..595dfd22f984b9843ef7fbec821ea9835b4ba0bd 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js
@@ -82,12 +82,14 @@ Polymer({
/** @private */
onOkTap_: function() {
- this.browserProxy_.deleteCertificate(this.model.id).then(function() {
- this.$.dialog.close();
- }.bind(this),
- /** @param {!CertificatesError} error */
- function(error) {
- // TODO(dpapad): Display error here.
- });
+ this.browserProxy_.deleteCertificate(this.model.id).then(
+ function() {
+ this.$.dialog.close();
+ }.bind(this),
+ /** @param {!CertificatesError} error */
+ function(error) {
+ this.$.dialog.close();
+ this.fire('certificates-error', error);
+ }.bind(this));
},
});

Powered by Google App Engine
This is Rietveld 408576698