Index: chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js |
diff --git a/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js b/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js |
index 892a94377314943303513b7dd8b76abae6a6df01..cec540ad8915c5718805090aa7545dd1c4c48949 100644 |
--- a/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js |
+++ b/chrome/browser/resources/settings/people_page/easy_unlock_turn_off_dialog.js |
@@ -58,7 +58,7 @@ Polymer({ |
open: function() { |
this.getTurnOffStatus_().then(function(status) { |
this.status_ = status; |
- this.$.dialog.open(); |
+ this.$.dialog.showModal(); |
}.bind(this)); |
// The turn off flow status listener should only be active when the dialog |
@@ -87,8 +87,8 @@ Polymer({ |
* @private |
*/ |
handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) { |
- var dialog = /** @type {{opened: boolean}} */ this.$.dialog; |
- if (!easyUnlockEnabled && dialog.opened) |
+ var dialog = /** @type {!CrDialogElement} */ this.$.dialog; |
+ if (!easyUnlockEnabled && dialog.open) |
this.onCancelTap_(); |
}, |