Index: chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js |
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js b/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js |
index 7f790c0284b35ed4a8f82ff7b09955ac726cda82..fa8a4181c642b69d16a814735227be2b4f91c09a 100644 |
--- a/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js |
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js |
@@ -65,10 +65,12 @@ Polymer({ |
this.email_ = |
this.address.emailAddresses ? this.address.emailAddresses[0] : ''; |
- if (this.countryCode_ == this.address.countryCode) |
- this.updateAddressWrapper_(); |
- else |
- this.countryCode_ = this.address.countryCode; |
+ this.async(function() { |
+ if (this.countryCode_ == this.address.countryCode) |
+ this.updateAddressWrapper_(); |
+ else |
+ this.countryCode_ = this.address.countryCode; |
+ }.bind(this)); |
}.bind(this)); |
// Open is called on the dialog after the address wrapper has been updated. |
@@ -183,6 +185,12 @@ Polymer({ |
this.address.countryCode = countryCode; |
this.updateAddressWrapper_(); |
}, |
+ |
+ /** @private */ |
+ onCountryChange_: function() { |
+ var countrySelect = /** @type {!HTMLSelectElement} */ (this.$$('select')); |
+ this.countryCode_ = countrySelect.value; |
+ }, |
}); |
})(); |