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

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

Issue 2640233003: PaymentRequest: Move m_completeTimer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Use 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 | « third_party/WebKit/Source/modules/payments/PaymentRequest.h ('k') | no next file » | 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 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);
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698