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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_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_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 b2910a3f0ddb5bccf12fcc926712fd0048b9561d..df78b53004694536a1a8d5ccdfd43d86df7cd17f 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
@@ -27,7 +27,7 @@ Polymer({
/** @override */
attached: function() {
- this.$.dialog.open();
+ /** @type {!CrDialogElement} */ (this.$.dialog).open();
},
/**
@@ -77,18 +77,18 @@ Polymer({
/** @private */
onCancelTap_: function() {
- this.$.dialog.close();
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
},
/** @private */
onOkTap_: function() {
this.browserProxy_.deleteCertificate(this.model.id).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