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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_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: Adding more tests. 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/ca_trust_edit_dialog.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
index 019f8fd85d5ec5605e60c2f1911e407e69e3ab3c..8160fc87c8d3dc61f0a07b7cf7067b680bb4b00b 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
@@ -61,7 +61,9 @@ Polymer({
}.bind(this),
/** @param {!CertificatesError} error */
function(error) {
tommycli 2016/03/23 19:28:04 Nit: Can we redo the indentation on this a bit? I
dpapad 2016/03/24 22:06:10 Can you suggest an alternative indentation that wo
tommycli 2016/03/24 22:34:14 Does this work? I realize it's a great deal of ind
dpapad 2016/03/25 17:36:03 Done.
- // TODO(dpapad): Display error here.
- });
+ this.$.dialog.close();
+ this.dispatchEvent(
tommycli 2016/03/23 19:28:04 Any particular reason we're using dispatchEvent he
dpapad 2016/03/24 22:06:10 Changed all of them to fire() for consistency. Th
tommycli 2016/03/24 22:34:14 Arg... that's unfortunate. I'm not so sure about m
+ new CustomEvent('certificates-error', {detail: error}));
+ }.bind(this));
},
});

Powered by Google App Engine
This is Rietveld 408576698