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'); |
}, |