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

Unified Diff: content/browser/payments/payment_app_context.cc

Issue 2497983002: PaymentApp: Implement PaymentAppManager.setManifest(). (Closed)
Patch Set: rebase 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
« no previous file with comments | « content/browser/payments/payment_app_context.h ('k') | content/browser/payments/payment_app_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/browser/payments/payment_app_context.h ('k') | content/browser/payments/payment_app_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698