| 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..2625f2ba6195b916f413eee1bed0a54f0b003676 100644
|
| --- a/chrome/browser/resources/settings/people_page/password_prompt_dialog.js
|
| +++ b/chrome/browser/resources/settings/people_page/password_prompt_dialog.js
|
| @@ -41,7 +41,7 @@ Polymer({
|
| */
|
| setModes: {
|
| type: Object,
|
| - notify: true
|
| + notify: true,
|
| },
|
|
|
| /**
|
| @@ -53,7 +53,7 @@ Polymer({
|
| */
|
| password_: {
|
| type: String,
|
| - observer: 'onPasswordChanged_'
|
| + observer: 'onPasswordChanged_',
|
| },
|
|
|
| /**
|
| @@ -68,7 +68,7 @@ Polymer({
|
| */
|
| quickUnlockPrivate_: {
|
| type: Object,
|
| - value: chrome.quickUnlockPrivate
|
| + value: chrome.quickUnlockPrivate,
|
| },
|
|
|
| /**
|
| @@ -80,7 +80,9 @@ Polymer({
|
| */
|
| writeUma_: {
|
| type: Object,
|
| - value: function() { return settings.recordLockScreenProgress; }
|
| + value: function() {
|
| + return settings.recordLockScreenProgress;
|
| + }
|
| },
|
|
|
| /**
|
| @@ -89,10 +91,17 @@ Polymer({
|
| */
|
| passwordActiveDurationMs_: {
|
| type: Number,
|
| - value: PASSWORD_ACTIVE_DURATION_MS
|
| + value: PASSWORD_ACTIVE_DURATION_MS,
|
| },
|
| },
|
|
|
| + /** @override */
|
| + attached: function() {
|
| + this.async(function() {
|
| + this.$.passwordInput.focus();
|
| + }.bind(this));
|
| + },
|
| +
|
| /**
|
| * Open up the dialog. This will wait until the dialog has loaded before
|
| * opening it.
|
| @@ -189,9 +198,9 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * Helper method that checks if the current password is valid.
|
| - * @param {function(boolean):void} onCheck
|
| - */
|
| + * Helper method that checks if the current password is valid.
|
| + * @param {function(boolean):void} onCheck
|
| + */
|
| checkAccountPassword_: function(onCheck) {
|
| // We check the account password by trying to update the active set of quick
|
| // unlock modes without changing any credentials.
|
|
|