Chromium Code Reviews| Index: chrome/browser/resources/options/autofill_edit_address_overlay.js |
| diff --git a/chrome/browser/resources/options/autofill_edit_address_overlay.js b/chrome/browser/resources/options/autofill_edit_address_overlay.js |
| index 9582ed23342b41a4925dde349e73769863a6786b..c26a647ff54f85b40db26fd9a901dcb920ca9a25 100644 |
| --- a/chrome/browser/resources/options/autofill_edit_address_overlay.js |
| +++ b/chrome/browser/resources/options/autofill_edit_address_overlay.js |
| @@ -327,10 +327,16 @@ cr.define('options', function() { |
| /** |
| * Loads the address data from |address|, sets the input fields based on |
| * this data, and stores the GUID and language code of the address. |
| - * @param {!Object} address Lots of info about an address from the browser. |
| + * @param {Object} address Lots of info about an address from the browser. |
| * @private |
| */ |
| loadAddress_: function(address) { |
| + if (!address) { |
|
arv (Not doing code reviews)
2014/09/02 17:01:04
A better solution would be to have another functio
Evan Stade
2014/09/02 18:41:17
Done.
|
| + // Adding a new address --- focus the first element. |
| + this.pageDiv.querySelector('input').focus(); |
| + return; |
| + } |
| + |
| this.rebuildInputFields_(address.components); |
| this.setInputFields_(address); |
| this.inputFieldChanged_(); |