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

Unified Diff: chrome/browser/ui/views/payments/validating_textfield_unittest.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/validating_textfield_unittest.cc
diff --git a/chrome/browser/ui/views/payments/validating_textfield_unittest.cc b/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
index 6a3b57b2fa0225e346ae2d5b6624a88c861fa720..001261a4d89e2a7c4f2dbfc0694cc1477f1ed36b 100644
--- a/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
+++ b/chrome/browser/ui/views/payments/validating_textfield_unittest.cc
@@ -28,8 +28,9 @@ class ValidatingTextfieldTest : public testing::Test {
~TestValidationDelegate() override {}
// ValidationDelegate:
- bool TextfieldValueChanged(views::Textfield* textfield) override {
- return IsValidTextfield(textfield);
+ bool TextfieldValueChanged(views::Textfield* textfield,
+ bool was_blurred) override {
+ return !was_blurred || IsValidTextfield(textfield);
}
bool ComboboxValueChanged(views::Combobox* combobox) override {
return IsValidCombobox(combobox);
« no previous file with comments | « chrome/browser/ui/views/payments/validating_textfield.cc ('k') | chrome/browser/ui/views/payments/validation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698