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

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

Issue 2697123003: Use ExecutionContext instead of Document in PaymentRequest constructor. (Closed)
Patch Set: Use ScriptState Created 3 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698