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

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

Issue 2903643002: PaymentHandler: Implement PaymentRequestEvent constructor. (Closed)
Patch Set: PaymentHandler: Implement PaymentRequestEvent constructor. Created 3 years, 6 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/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()),

Powered by Google App Engine
This is Rietveld 408576698