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 4ad5a30371ba7c60b916d7d2dabb60acecee4a22..14fcf1dbc8c2af1c0ae9181aef8e1272dafd5f11 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.cpp |
@@ -10,9 +10,9 @@ namespace blink { |
PaymentRequestEvent* PaymentRequestEvent::create( |
const AtomicString& type, |
- const PaymentAppRequestData& data, |
+ const PaymentAppRequest& appRequest, |
WaitUntilObserver* observer) { |
- return new PaymentRequestEvent(type, data, observer); |
+ return new PaymentRequestEvent(type, appRequest, observer); |
} |
PaymentRequestEvent::~PaymentRequestEvent() {} |
@@ -21,8 +21,8 @@ const AtomicString& PaymentRequestEvent::interfaceName() const { |
return EventNames::PaymentRequestEvent; |
} |
-void PaymentRequestEvent::data(PaymentAppRequestData& data) const { |
- data = m_data; |
+void PaymentRequestEvent::appRequest(PaymentAppRequest& appRequest) const { |
+ appRequest = m_appRequest; |
} |
void PaymentRequestEvent::respondWith(ScriptPromise) { |
@@ -30,13 +30,14 @@ void PaymentRequestEvent::respondWith(ScriptPromise) { |
} |
DEFINE_TRACE(PaymentRequestEvent) { |
- visitor->trace(m_data); |
+ visitor->trace(m_appRequest); |
ExtendableEvent::trace(visitor); |
} |
PaymentRequestEvent::PaymentRequestEvent(const AtomicString& type, |
- const PaymentAppRequestData& data, |
+ const PaymentAppRequest& appRequest, |
WaitUntilObserver* observer) |
- : ExtendableEvent(type, ExtendableEventInit(), observer), m_data(data) {} |
+ : ExtendableEvent(type, ExtendableEventInit(), observer), |
+ m_appRequest(appRequest) {} |
} // namespace blink |