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 373146cfed0f8b23ee332479b90d431af4a1677d..1e70c434f76ddc1762ba60184363db123a87e05c 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -817,8 +817,8 @@ void PaymentRequest::OnShippingAddressChange(PaymentAddressPtr address) { |
} |
m_shippingAddress = new PaymentAddress(std::move(address)); |
- PaymentRequestUpdateEvent* event = |
- PaymentRequestUpdateEvent::create(EventTypeNames::shippingaddresschange); |
+ PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create( |
+ getExecutionContext(), EventTypeNames::shippingaddresschange); |
event->setTarget(this); |
event->setPaymentDetailsUpdater(this); |
bool success = getExecutionContext()->getEventQueue()->enqueueEvent(event); |
@@ -830,8 +830,8 @@ void PaymentRequest::OnShippingOptionChange(const String& shippingOptionId) { |
DCHECK(m_showResolver); |
DCHECK(!m_completeResolver); |
m_shippingOption = shippingOptionId; |
- PaymentRequestUpdateEvent* event = |
- PaymentRequestUpdateEvent::create(EventTypeNames::shippingoptionchange); |
+ PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create( |
+ getExecutionContext(), EventTypeNames::shippingoptionchange); |
event->setTarget(this); |
event->setPaymentDetailsUpdater(this); |
bool success = getExecutionContext()->getEventQueue()->enqueueEvent(event); |