| 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 fa8a4181c642b69d16a814735227be2b4f91c09a..502d07a6a1911e58ef73c8c3c6b34b573e876101 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
|
| @@ -164,6 +164,10 @@ Polymer({
|
| * @private
|
| */
|
| onSaveButtonTap_: function() {
|
| + // The Enter key can call this function even if the button is disabled.
|
| + if (!this.canSave_)
|
| + return;
|
| +
|
| // Set a default country if none is set.
|
| if (!this.address.countryCode)
|
| this.address.countryCode = this.countries_[0].countryCode;
|
|
|