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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp

Issue 2340743002: Modify error messages for payment address validation as per specification. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp b/third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp
index 6a1fbc0b89a90a6eb8ab097bed0f2dbc50787cda..5fe6dd2cd91e9b298c9c2da680fdb89e1cdb10fb 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp
@@ -40,7 +40,7 @@ bool PaymentsValidators::isValidCountryCodeFormat(const String& code, String* op
return true;
if (optionalErrorMessage)
- *optionalErrorMessage = "'" + code + "' is not a valid ISO 3166 country code, should be 2 upper case letters [A-Z]";
+ *optionalErrorMessage = "'" + code + "' is not a valid CLDR country code, should be 2 upper case letters [A-Z]";
return false;
}
@@ -51,7 +51,7 @@ bool PaymentsValidators::isValidLanguageCodeFormat(const String& code, String* o
return true;
if (optionalErrorMessage)
- *optionalErrorMessage = "'" + code + "' is not a valid ISO 639 language code, should be 2-3 lower case letters [a-z]";
+ *optionalErrorMessage = "'" + code + "' is not a valid BCP-47 language code, should be 2-3 lower case letters [a-z]";
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698