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

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

Issue 2541663003: Remove [ConstructorCallWith=ScriptState] from Payments (Closed)
Patch Set: temp Created 4 years 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/PaymentAppManager.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp b/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
index 55cb50b243b700954c1968125248c838c1095a7c..e066fab743afaa999b44ac896054c0f1d5d65267 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp
@@ -84,9 +84,9 @@ struct TypeConverter<blink::PaymentAppOption, PaymentAppOptionPtr> {
namespace blink {
PaymentAppManager* PaymentAppManager::create(
- ScriptState* scriptState,
+ ExecutionContext* executionContext,
ServiceWorkerRegistration* registration) {
- return new PaymentAppManager(scriptState, registration);
+ return new PaymentAppManager(executionContext, registration);
}
void PaymentAppManager::contextDestroyed() {
@@ -138,10 +138,9 @@ DEFINE_TRACE(PaymentAppManager) {
ContextLifecycleObserver::trace(visitor);
}
-PaymentAppManager::PaymentAppManager(ScriptState* scriptState,
+PaymentAppManager::PaymentAppManager(ExecutionContext* executionContext,
ServiceWorkerRegistration* registration)
- : ContextLifecycleObserver(scriptState->getExecutionContext()),
- m_registration(registration) {
+ : ContextLifecycleObserver(executionContext), m_registration(registration) {
DCHECK(registration);
Platform::current()->interfaceProvider()->getInterface(
mojo::GetProxy(&m_manager));

Powered by Google App Engine
This is Rietveld 408576698