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

Unified Diff: chrome/browser/resources/chromeos/login/saml_confirm_password.js

Issue 2961103003: CrOS OOBE login: Replace last usages of paper-dialog with cr-dialog. (Closed)
Patch Set: Tweak Created 3 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/saml_confirm_password.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/saml_confirm_password.js
diff --git a/chrome/browser/resources/chromeos/login/saml_confirm_password.js b/chrome/browser/resources/chromeos/login/saml_confirm_password.js
index 1a671fec19e3a435f70c42cc217aa90a3b716c34..b5497edd7a9410f517e3415280cf31cb4a450198 100644
--- a/chrome/browser/resources/chromeos/login/saml_confirm_password.js
+++ b/chrome/browser/resources/chromeos/login/saml_confirm_password.js
@@ -30,7 +30,8 @@ Polymer({
},
reset: function() {
- this.$.cancelConfirmDlg.close();
+ if (this.$.cancelConfirmDlg.open)
+ this.$.cancelConfirmDlg.close();
this.disabled = false;
this.$.navigation.closeVisible = true;
if (this.$.animatedPages.selected != 0)
@@ -54,11 +55,15 @@ Polymer({
onClose_: function() {
this.disabled = true;
- this.$.cancelConfirmDlg.fitInto = this;
- this.$.cancelConfirmDlg.open();
+ this.$.cancelConfirmDlg.showModal();
},
- onConfirmCancel_: function() {
+ onCancelNo_: function() {
+ this.$.cancelConfirmDlg.close();
+ },
+
+ onCancelYes_: function() {
+ this.$.cancelConfirmDlg.close();
this.fire('cancel');
},
« no previous file with comments | « chrome/browser/resources/chromeos/login/saml_confirm_password.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698