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

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

Issue 2114663004: [MD settings] cast elements to cr_dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 7eff4c4bd2990363efcc8c52cf3b3d80540a0068..d2fb432f68faab8e74e19e7ca61c7c984c2c9c60 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
@@ -27,12 +27,12 @@ Polymer({
/** @override */
attached: function() {
- this.$.dialog.open();
+ /** @type {!CrDialogElement} */ (this.$.dialog).open();
},
/** @private */
onCancelTap_: function() {
- this.$.dialog.close();
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
},
/** @private */
@@ -40,11 +40,11 @@ Polymer({
this.browserProxy_.importPersonalCertificatePasswordSelected(
this.password_).then(
function() {
- this.$.dialog.close();
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
}.bind(this),
/** @param {!CertificatesError} error */
function(error) {
- this.$.dialog.close();
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
this.fire('certificates-error', error);
}.bind(this));
},

Powered by Google App Engine
This is Rietveld 408576698