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

Unified Diff: chrome/browser/resources/settings/people_page/password_prompt_dialog.js

Issue 2822733002: md settings: Small changes to lock screen. (Closed)
Patch Set: Created 3 years, 8 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/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 96be633de90375b467f384779894df24812373fa..b234939aadc466d9ace73794e146106f38f21638 100644
--- a/chrome/browser/resources/settings/people_page/password_prompt_dialog.js
+++ b/chrome/browser/resources/settings/people_page/password_prompt_dialog.js
@@ -110,6 +110,9 @@ Polymer({
this.writeUma_(LockScreenProgress.START_SCREEN_LOCK);
this.$.dialog.showModal();
+ this.async(function() {
+ this.$.passwordInput.shadowRoot.querySelector('#input').focus();
sammiequon 2017/04/14 17:22:07 This is kind of messy but the JS guide doesn't all
stevenjb 2017/04/14 21:47:20 If this.$.passwordInput.focus() doesn't work that
stevenjb 2017/04/14 21:51:30 Oh, actually, I think your problem may be that thi
sammiequon 2017/04/14 22:11:43 That doesn't seem to work, it has the same behavio
stevenjb 2017/04/14 22:29:02 Hmm, I think we need to investigate that then. Que
sammiequon 2017/04/14 23:48:13 Acknowledged. Let me see if I can find a better ap
+ }.bind(this));
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698