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

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

Issue 2711543003: [Payments] Unify the card number invalid string (Closed)
Patch Set: Initial Created 3 years, 10 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 10e0b219a0fa97c577f37eb9ad3c365bb89100fb..7bf3a938d4524288dbd6af27ab5a0bf149f4bc0a 100644
--- a/components/autofill/core/browser/validation.cc
+++ b/components/autofill/core/browser/validation.cc
@@ -271,9 +271,10 @@ bool IsValidForType(const base::string16& value,
if (IsValidCreditCardNumber(value))
return true;
- if (error_message)
- *error_message =
- l10n_util::GetStringUTF16(IDS_PAYMENTS_CARD_NUMBER_INVALID);
+ if (error_message) {
+ *error_message = l10n_util::GetStringUTF16(
+ IDS_PAYMENTS_CARD_NUMBER_INVALID_VALIDATION_MESSAGE);
+ }
break;
default:

Powered by Google App Engine
This is Rietveld 408576698