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 501f479d317e9a8f8b7fe4a2db97539ce1169209..5c82c2eb1e504094b80b5a33ad290428f695651b 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentAppManager.cpp |
@@ -101,7 +101,6 @@ ScriptPromise PaymentAppManager::setManifest( |
ScriptPromise promise = resolver->promise(); |
m_manager->SetManifest( |
- m_registration->scope(), |
payments::mojom::blink::PaymentAppManifest::From(manifest), |
convertToBaseCallback(WTF::bind(&PaymentAppManager::onSetManifest, |
wrapPersistent(this), |
@@ -120,10 +119,9 @@ ScriptPromise PaymentAppManager::getManifest(ScriptState* scriptState) { |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
ScriptPromise promise = resolver->promise(); |
- m_manager->GetManifest(m_registration->scope(), |
- convertToBaseCallback(WTF::bind( |
- &PaymentAppManager::onGetManifest, |
- wrapPersistent(this), wrapPersistent(resolver)))); |
+ m_manager->GetManifest(convertToBaseCallback( |
+ WTF::bind(&PaymentAppManager::onGetManifest, wrapPersistent(this), |
+ wrapPersistent(resolver)))); |
return promise; |
} |
@@ -140,6 +138,8 @@ PaymentAppManager::PaymentAppManager(ServiceWorkerRegistration* registration) |
m_manager.set_connection_error_handler(convertToBaseCallback(WTF::bind( |
&PaymentAppManager::onServiceConnectionError, wrapWeakPersistent(this)))); |
+ |
+ m_manager->Init(m_registration->scope()); |
} |
void PaymentAppManager::onSetManifest( |