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

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

Issue 2898223002: PaymentHandler: Rename PaymentAppRequest with PaymentRequestEventData. (Closed)
Patch Set: Rename Created 3 years, 7 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 e3c71a33b30db4ed13afaf07b064f7a36e47dae6..ad2a0d2bc7d1fb69cbc9039151ea62a1d6ac1e18 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp
@@ -18,10 +18,10 @@ namespace blink {
PaymentRequestEvent* PaymentRequestEvent::Create(
const AtomicString& type,
- const PaymentAppRequest& app_request,
+ const PaymentRequestEventInit& initializer,
RespondWithObserver* respond_with_observer,
WaitUntilObserver* wait_until_observer) {
- return new PaymentRequestEvent(type, app_request, respond_with_observer,
+ return new PaymentRequestEvent(type, initializer, respond_with_observer,
wait_until_observer);
}
@@ -119,17 +119,17 @@ DEFINE_TRACE(PaymentRequestEvent) {
PaymentRequestEvent::PaymentRequestEvent(
const AtomicString& type,
- const PaymentAppRequest& app_request,
+ const PaymentRequestEventInit& initializer,
RespondWithObserver* respond_with_observer,
WaitUntilObserver* wait_until_observer)
: ExtendableEvent(type, ExtendableEventInit(), wait_until_observer),
- top_level_origin_(app_request.topLevelOrigin()),
- payment_request_origin_(app_request.paymentRequestOrigin()),
- payment_request_id_(app_request.paymentRequestId()),
- method_data_(std::move(app_request.methodData())),
- total_(app_request.total()),
- modifiers_(app_request.modifiers()),
- instrument_key_(app_request.instrumentKey()),
+ top_level_origin_(initializer.topLevelOrigin()),
+ payment_request_origin_(initializer.paymentRequestOrigin()),
+ payment_request_id_(initializer.paymentRequestId()),
+ method_data_(std::move(initializer.methodData())),
+ total_(initializer.total()),
+ modifiers_(initializer.modifiers()),
+ instrument_key_(initializer.instrumentKey()),
observer_(respond_with_observer) {}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698