Index: content/browser/payments/payment_app_context.cc |
diff --git a/content/browser/payments/payment_app_context.cc b/content/browser/payments/payment_app_context.cc |
index f56468c9a3f75f65637df670da03b7bc43cd00a5..8fc961a5243d3821e1b51dc9484f882fa653e4f7 100644 |
--- a/content/browser/payments/payment_app_context.cc |
+++ b/content/browser/payments/payment_app_context.cc |
@@ -15,7 +15,9 @@ |
namespace content { |
-PaymentAppContext::PaymentAppContext() { |
+PaymentAppContext::PaymentAppContext( |
+ scoped_refptr<ServiceWorkerContextWrapper> service_worker_context) |
+ : service_worker_context_(std::move(service_worker_context)) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
} |
@@ -23,11 +25,6 @@ PaymentAppContext::~PaymentAppContext() { |
DCHECK(services_.empty()); |
} |
-void PaymentAppContext::Init( |
- scoped_refptr<ServiceWorkerContextWrapper> context) { |
- DCHECK_CURRENTLY_ON(BrowserThread::UI); |
-} |
- |
void PaymentAppContext::Shutdown() { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
@@ -52,6 +49,10 @@ void PaymentAppContext::ServiceHadConnectionError(PaymentAppManager* service) { |
services_.erase(service); |
} |
+ServiceWorkerContextWrapper* PaymentAppContext::service_worker_context() const { |
+ return service_worker_context_.get(); |
+} |
+ |
void PaymentAppContext::CreateServiceOnIOThread( |
mojo::InterfaceRequest<payments::mojom::PaymentAppManager> request) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |