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

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

Issue 2410143003: Add currencySystem field to PaymentCurrencyAmount (Closed)
Patch Set: Add currencySystem field to PaymentCurrencyAmount Created 4 years, 2 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: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
index bf26a120ac4021fd6f8eeb16573ed382e1799c7c..b47b604af8d2f9b477329317c3aaa714a6ab82d8 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
@@ -201,8 +201,9 @@ void validateShippingOptionOrPaymentItem(const T& item,
}
String errorMessage;
- if (!PaymentsValidators::isValidCurrencyCodeFormat(item.amount().currency(),
- &errorMessage)) {
+ if (!PaymentsValidators::isValidCurrencyCodeFormat(
+ item.amount().currency(), item.amount().currencySystem(),
+ &errorMessage)) {
exceptionState.throwTypeError(errorMessage);
return;
}

Powered by Google App Engine
This is Rietveld 408576698