Chromium Code Reviews| Index: chrome/browser/resources/settings/people_page/password_prompt_dialog.js |
| diff --git a/chrome/browser/resources/settings/people_page/password_prompt_dialog.js b/chrome/browser/resources/settings/people_page/password_prompt_dialog.js |
| index 2625f2ba6195b916f413eee1bed0a54f0b003676..7bbb914fd5300cd63c563fa22a472c5a68622bb9 100644 |
| --- a/chrome/browser/resources/settings/people_page/password_prompt_dialog.js |
| +++ b/chrome/browser/resources/settings/people_page/password_prompt_dialog.js |
| @@ -97,30 +97,13 @@ Polymer({ |
| /** @override */ |
| attached: function() { |
| + this.writeUma_(LockScreenProgress.START_SCREEN_LOCK); |
| + this.$.dialog.showModal(); |
| this.async(function() { |
| this.$.passwordInput.focus(); |
|
dpapad
2017/06/01 17:48:44
I don't understand why this is needed at all.
- <
sammiequon
2017/06/01 20:21:10
I tried removing this but it does not give the exp
dpapad
2017/06/01 21:44:53
Thanks for trying. The logic for focusing an elem
sammiequon
2017/06/01 22:02:33
Actually, it's not that autofocus doesn't work, it
|
| }.bind(this)); |
| }, |
| - /** |
| - * Open up the dialog. This will wait until the dialog has loaded before |
| - * opening it. |
| - */ |
| - open: function() { |
| - // Wait until the dialog is attached to the DOM before trying to open it. |
| - var dialog = /** @type {{isConnected: boolean}} */ (this.$.dialog); |
| - if (!dialog.isConnected) { |
| - setTimeout(this.open.bind(this)); |
| - return; |
| - } |
| - |
| - if (this.$.dialog.open) |
| - return; |
| - |
| - this.writeUma_(LockScreenProgress.START_SCREEN_LOCK); |
| - this.$.dialog.showModal(); |
| - }, |
| - |
| /** @private */ |
| onCancelTap_: function() { |
| if (this.$.dialog.open) |