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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.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/PaymentAppServiceWorkerRegistration.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp b/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp
index 64fd43e683a1edf080daff51ca7d2119eeed9de3..940f5a4a2c2401c99f281af7fcaed50e75c544e4 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp
@@ -5,6 +5,7 @@
#include "modules/payments/PaymentAppServiceWorkerRegistration.h"
#include "bindings/core/v8/ScriptState.h"
+#include "core/dom/Document.h"
#include "modules/payments/PaymentAppManager.h"
#include "modules/serviceworkers/ServiceWorkerRegistration.h"
@@ -39,8 +40,8 @@ PaymentAppManager* PaymentAppServiceWorkerRegistration::paymentAppManager(
PaymentAppManager* PaymentAppServiceWorkerRegistration::paymentAppManager(
ScriptState* scriptState) {
if (!m_paymentAppManager) {
- m_paymentAppManager =
- PaymentAppManager::create(scriptState, m_registration);
+ m_paymentAppManager = PaymentAppManager::create(
+ scriptState->getExecutionContext(), m_registration);
}
return m_paymentAppManager.get();
}

Powered by Google App Engine
This is Rietveld 408576698