Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4544)

Unified Diff: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc

Issue 2896263002: [Payments] Changes to validation in the Credit Card editor (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
index bf951216b413ec04fa2d6aa6401c1753da218a0c..0a0b9fd4af5b36292e5d807ca2520a6568e94313 100644
--- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
@@ -480,7 +480,10 @@ bool ShippingAddressEditorViewController::ShippingAddressValidationDelegate::
}
bool ShippingAddressEditorViewController::ShippingAddressValidationDelegate::
- TextfieldValueChanged(views::Textfield* textfield) {
+ TextfieldValueChanged(views::Textfield* textfield, bool was_blurred) {
+ if (!was_blurred)
+ return true;
+
base::string16 error_message;
bool is_valid = ValidateValue(textfield->text(), &error_message);
controller_->DisplayErrorMessageForField(field_.type, error_message);

Powered by Google App Engine
This is Rietveld 408576698