| Index: chrome/browser/ui/views/payments/validating_combobox.cc
|
| diff --git a/chrome/browser/ui/views/payments/validating_combobox.cc b/chrome/browser/ui/views/payments/validating_combobox.cc
|
| index 080bb85876ebc9f631dd40d568cce959a59a1dc8..642cae4b1b499185f405c5dca4ca739250e6f113 100644
|
| --- a/chrome/browser/ui/views/payments/validating_combobox.cc
|
| +++ b/chrome/browser/ui/views/payments/validating_combobox.cc
|
| @@ -23,11 +23,9 @@ ValidatingCombobox::~ValidatingCombobox() {}
|
| void ValidatingCombobox::OnBlur() {
|
| Combobox::OnBlur();
|
|
|
| - // The first validation should be on a blur. The subsequent validations will
|
| - // occur when the content changes. Do not validate if the view is being
|
| - // removed.
|
| - if (!was_blurred_ && !being_removed_) {
|
| - was_blurred_ = true;
|
| + // Validations will occur when the content changes. Do not validate if the
|
| + // view is being removed.
|
| + if (!being_removed_) {
|
| Validate();
|
| }
|
| }
|
| @@ -39,11 +37,6 @@ void ValidatingCombobox::ViewHierarchyChanged(
|
| }
|
|
|
| void ValidatingCombobox::OnContentsChanged() {
|
| - // Validation on every keystroke only happens if the field has been validated
|
| - // before as part of a blur.
|
| - if (!was_blurred_)
|
| - return;
|
| -
|
| Validate();
|
| }
|
|
|
|
|