| 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 139e9cf7e0f26a8328a15a7930fdf9fb6313c2c5..37b267bb42ffbe7dd1af149058dfe4020a531570 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentResponse.cpp
|
| @@ -9,26 +9,10 @@
|
| #include "modules/payments/PaymentCompleter.h"
|
| #include "wtf/Assertions.h"
|
|
|
| -namespace mojo {
|
| -
|
| -template <>
|
| -struct TypeConverter<blink::PaymentCurrencyAmount, blink::mojom::blink::PaymentCurrencyAmount> {
|
| - static blink::PaymentCurrencyAmount Convert(const blink::mojom::blink::PaymentCurrencyAmount& input)
|
| - {
|
| - blink::PaymentCurrencyAmount output;
|
| - output.setCurrency(input.currency);
|
| - output.setValue(input.value);
|
| - return output;
|
| - }
|
| -};
|
| -
|
| -} // namespace mojo
|
| -
|
| namespace blink {
|
|
|
| PaymentResponse::PaymentResponse(mojom::blink::PaymentResponsePtr response, PaymentCompleter* paymentCompleter)
|
| : m_methodName(response->method_name)
|
| - , 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_shippingOption(response->shipping_option)
|
|
|