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

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

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: fix lint error Created 4 years, 1 month 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 adb43668227ff10c419af8910fad82bdd39b5b7c..64fd43e683a1edf080daff51ca7d2119eeed9de3 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentAppServiceWorkerRegistration.cpp
@@ -4,6 +4,7 @@
#include "modules/payments/PaymentAppServiceWorkerRegistration.h"
+#include "bindings/core/v8/ScriptState.h"
#include "modules/payments/PaymentAppManager.h"
#include "modules/serviceworkers/ServiceWorkerRegistration.h"
@@ -29,14 +30,18 @@ PaymentAppServiceWorkerRegistration& PaymentAppServiceWorkerRegistration::from(
// static
PaymentAppManager* PaymentAppServiceWorkerRegistration::paymentAppManager(
+ ScriptState* scriptState,
ServiceWorkerRegistration& registration) {
return PaymentAppServiceWorkerRegistration::from(registration)
- .paymentAppManager();
+ .paymentAppManager(scriptState);
}
-PaymentAppManager* PaymentAppServiceWorkerRegistration::paymentAppManager() {
- if (!m_paymentAppManager)
- m_paymentAppManager = PaymentAppManager::create(m_registration);
+PaymentAppManager* PaymentAppServiceWorkerRegistration::paymentAppManager(
+ ScriptState* scriptState) {
+ if (!m_paymentAppManager) {
+ m_paymentAppManager =
+ PaymentAppManager::create(scriptState, m_registration);
+ }
return m_paymentAppManager.get();
}

Powered by Google App Engine
This is Rietveld 408576698