| Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
|
| diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
|
| index b69c0e3f5f66f9c6c0fc2104b1e7c0732863e5e8..ad3e26a6289309cd84eb446189dc4c43570010e5 100644
|
| --- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
|
| +++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
|
| @@ -390,21 +390,19 @@ bool CreditCardEditorViewController::ValidateModelAndSave() {
|
| autofill::CreditCard credit_card;
|
| credit_card.set_origin(autofill::kSettingsOrigin);
|
|
|
| + if (!ValidateInputFields())
|
| + return false;
|
| +
|
| for (const auto& field : text_fields()) {
|
| // ValidatingTextfield* is the key, EditorField is the value.
|
| DCHECK_EQ(autofill::CREDIT_CARD,
|
| autofill::AutofillType(field.second.type).group());
|
| - if (field.first->invalid())
|
| - return false;
|
| -
|
| credit_card.SetInfo(autofill::AutofillType(field.second.type),
|
| field.first->text(), locale);
|
| }
|
| for (const auto& field : comboboxes()) {
|
| // ValidatingCombobox* is the key, EditorField is the value.
|
| ValidatingCombobox* combobox = field.first;
|
| - if (combobox->invalid())
|
| - return false;
|
|
|
| if (field.second.type == kBillingAddressType) {
|
| autofill::AddressComboboxModel* model =
|
|
|