Index: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp |
index f34a4bc3ca49553138c9207575046f0e2bc2246e..54d9d2b9906f93e4f1c9ddaf9fcd55de6a67965c 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp |
@@ -8,7 +8,6 @@ |
#include "bindings/core/v8/ScriptFunction.h" |
#include "core/dom/DOMException.h" |
#include "core/dom/ExceptionCode.h" |
-#include "core/dom/ExecutionContext.h" |
#include "core/dom/TaskRunnerHelper.h" |
#include "modules/payments/PaymentUpdater.h" |
#include "public/platform/WebTraceLocation.h" |
@@ -87,10 +86,10 @@ class UpdatePaymentDetailsErrorFunction : public ScriptFunction { |
PaymentRequestUpdateEvent::~PaymentRequestUpdateEvent() {} |
PaymentRequestUpdateEvent* PaymentRequestUpdateEvent::create( |
- ExecutionContext* executionContext, |
+ ScriptState* scriptState, |
const AtomicString& type, |
const PaymentRequestUpdateEventInit& init) { |
- return new PaymentRequestUpdateEvent(executionContext, type, init); |
+ return new PaymentRequestUpdateEvent(scriptState, type, init); |
} |
void PaymentRequestUpdateEvent::setPaymentDetailsUpdater( |
@@ -148,14 +147,14 @@ void PaymentRequestUpdateEvent::onUpdateEventTimeout(TimerBase*) { |
} |
PaymentRequestUpdateEvent::PaymentRequestUpdateEvent( |
- ExecutionContext* executionContext, |
+ ScriptState* scriptState, |
const AtomicString& type, |
const PaymentRequestUpdateEventInit& init) |
: Event(type, init), |
m_waitForUpdate(false), |
- m_abortTimer( |
- TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext), |
- this, |
- &PaymentRequestUpdateEvent::onUpdateEventTimeout) {} |
+ m_abortTimer(TaskRunnerHelper::get(TaskType::MiscPlatformAPI, |
+ scriptState->getExecutionContext()), |
+ this, |
+ &PaymentRequestUpdateEvent::onUpdateEventTimeout) {} |
} // namespace blink |