Index: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
index 52788370db9c2ca153bd7337a0ee97abcc550022..bdf533512892cf05a55a6e4091717f80b8fd6abc 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
@@ -18,6 +18,12 @@ namespace blink { |
PaymentRequestEvent* PaymentRequestEvent::Create( |
const AtomicString& type, |
+ const PaymentRequestEventInit& initializer) { |
+ return new PaymentRequestEvent(type, initializer, nullptr, nullptr); |
+} |
+ |
+PaymentRequestEvent* PaymentRequestEvent::Create( |
+ const AtomicString& type, |
const PaymentRequestEventInit& initializer, |
RespondWithObserver* respond_with_observer, |
WaitUntilObserver* wait_until_observer) { |
@@ -122,7 +128,7 @@ PaymentRequestEvent::PaymentRequestEvent( |
const PaymentRequestEventInit& initializer, |
RespondWithObserver* respond_with_observer, |
WaitUntilObserver* wait_until_observer) |
- : ExtendableEvent(type, ExtendableEventInit(), wait_until_observer), |
+ : ExtendableEvent(type, initializer, wait_until_observer), |
top_level_origin_(initializer.topLevelOrigin()), |
payment_request_origin_(initializer.paymentRequestOrigin()), |
payment_request_id_(initializer.paymentRequestId()), |