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

Unified Diff: chrome/browser/ui/views/payments/contact_info_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/contact_info_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
index e8987fbad4283753ced82c5e0da6b5eadca4b76b..f500fd02f1d56f920f0d4686e7e3f531d6c0637b 100644
--- a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
@@ -177,7 +177,10 @@ bool ContactInfoEditorViewController::ContactInfoValidationDelegate::
}
bool ContactInfoEditorViewController::ContactInfoValidationDelegate::
- TextfieldValueChanged(views::Textfield* textfield) {
+ TextfieldValueChanged(views::Textfield* textfield, bool was_blurred) {
+ if (!was_blurred)
+ return true;
+
base::string16 error_message;
bool is_valid = ValidateTextfield(textfield, &error_message);
controller_->DisplayErrorMessageForField(field_.type, error_message);

Powered by Google App Engine
This is Rietveld 408576698