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 1e70c434f76ddc1762ba60184363db123a87e05c..2d1bc04ad089bb5ab244393de3b5cbe727cbdc24 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -14,6 +14,7 @@ |
#include "core/EventTypeNames.h" |
#include "core/dom/DOMException.h" |
#include "core/dom/ExceptionCode.h" |
+#include "core/dom/TaskRunnerHelper.h" |
#include "core/events/Event.h" |
#include "core/events/EventQueue.h" |
#include "core/frame/FrameOwner.h" |
@@ -755,7 +756,10 @@ PaymentRequest::PaymentRequest(Document& document, |
: ContextLifecycleObserver(&document), |
m_options(options), |
m_clientBinding(this), |
- m_completeTimer(this, &PaymentRequest::onCompleteTimeout) { |
+ m_completeTimer( |
+ TaskRunnerHelper::get(TaskType::MiscPlatformAPI, document.frame()), |
+ this, |
+ &PaymentRequest::onCompleteTimeout) { |
Vector<payments::mojom::blink::PaymentMethodDataPtr> validatedMethodData; |
validateAndConvertPaymentMethodData(methodData, validatedMethodData, |
exceptionState); |