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

Unified Diff: components/autofill/core/browser/validation.cc

Issue 2918133002: [Merge M60][Payments] Refactor the year and month combobox models and preselect. (Closed)
Patch Set: 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: components/autofill/core/browser/validation.cc
diff --git a/components/autofill/core/browser/validation.cc b/components/autofill/core/browser/validation.cc
index a2d3e25f945b343841b73cb6eae677b72c93e358..4588a13bbd92d659801ac7afd5431294114aff91 100644
--- a/components/autofill/core/browser/validation.cc
+++ b/components/autofill/core/browser/validation.cc
@@ -154,11 +154,11 @@ CreditCardCompletionStatus GetCompletionStatusForCard(
base::string16 GetCompletionMessageForCard(CreditCardCompletionStatus status) {
switch (status) {
+ // No message is shown for complete or expired card (which will be fixable)
+ // in the CVC screen.
case CREDIT_CARD_COMPLETE:
- return base::string16();
case CREDIT_CARD_EXPIRED:
- return l10n_util::GetStringUTF16(
- IDS_PAYMENTS_VALIDATION_INVALID_CREDIT_CARD_EXPIRED);
+ return base::string16();
case CREDIT_CARD_NO_CARDHOLDER:
return l10n_util::GetStringUTF16(IDS_PAYMENTS_NAME_ON_CARD_REQUIRED);
case CREDIT_CARD_NO_NUMBER:
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | components/payments/core/autofill_payment_instrument.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698