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

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

Issue 2410143003: Add currencySystem field to PaymentCurrencyAmount (Closed)
Patch Set: Fix tests in Win builds 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 ec17e2590d68417016122e1c7c43ab543c12cda2..7e33a2919366e6c891a10dea313fbe32c3e11a37 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