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

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

Issue 2640293002: PaymentRequest: Move m_abortTimer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: MiscPlatformAPI Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698