| Index: third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp b/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| index a2e498f4a546acc24119d918c351715a5f3a5197..a42351b7934a7dc94ad9a848c1622c0257ac18a7 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| @@ -12,10 +12,10 @@
|
| namespace mojo {
|
|
|
| template <>
|
| -struct TypeConverter<blink::CurrencyAmount, blink::mojom::blink::CurrencyAmount> {
|
| - static blink::CurrencyAmount Convert(const blink::mojom::blink::CurrencyAmount& input)
|
| +struct TypeConverter<blink::PaymentCurrencyAmount, blink::mojom::blink::PaymentCurrencyAmount> {
|
| + static blink::PaymentCurrencyAmount Convert(const blink::mojom::blink::PaymentCurrencyAmount& input)
|
| {
|
| - blink::CurrencyAmount output;
|
| + blink::PaymentCurrencyAmount output;
|
| output.setCurrency(input.currency);
|
| output.setValue(input.value);
|
| return output;
|
| @@ -28,7 +28,7 @@ namespace blink {
|
|
|
| PaymentResponse::PaymentResponse(mojom::blink::PaymentResponsePtr response, PaymentCompleter* paymentCompleter)
|
| : m_methodName(response->method_name)
|
| - , m_totalAmount(response->total_amount->To<CurrencyAmount>())
|
| + , m_totalAmount(response->total_amount->To<PaymentCurrencyAmount>())
|
| , m_stringifiedDetails(response->stringified_details)
|
| , m_shippingAddress(response->shipping_address ? new PaymentAddress(std::move(response->shipping_address)) : nullptr)
|
| , m_payerEmail(response->payer_email)
|
|
|