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

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

Issue 2609103002: PaymentApp: Add PaymentAppProvider class. (Closed)
Patch Set: Remove override keyword Created 3 years, 11 months 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: content/browser/payments/payment_app_context_impl.cc
diff --git a/content/browser/payments/payment_app_context_impl.cc b/content/browser/payments/payment_app_context_impl.cc
index eb5a9556667d237c234cd4b9596c4344d16d932e..20192b1c585699b5110fbdfb15696e29d86d40aa 100644
--- a/content/browser/payments/payment_app_context_impl.cc
+++ b/content/browser/payments/payment_app_context_impl.cc
@@ -61,14 +61,6 @@ PaymentAppDatabase* PaymentAppContextImpl::payment_app_database() const {
return payment_app_database_.get();
}
-void PaymentAppContextImpl::GetAllManifests(
- const GetAllManifestsCallback& callback) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&PaymentAppContextImpl::GetAllManifestsOnIO, this, callback));
-}
-
PaymentAppContextImpl::~PaymentAppContextImpl() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(is_shutdown_);
@@ -103,21 +95,4 @@ void PaymentAppContextImpl::DidShutdown() {
is_shutdown_ = true;
}
-void PaymentAppContextImpl::GetAllManifestsOnIO(
- const GetAllManifestsCallback& callback) {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
- payment_app_database()->ReadAllManifests(base::Bind(
- &PaymentAppContextImpl::DidGetAllManifestsOnIO, this, callback));
-}
-
-void PaymentAppContextImpl::DidGetAllManifestsOnIO(
- const GetAllManifestsCallback& callback,
- Manifests manifests) {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
-
- BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE,
- base::Bind(callback, base::Passed(std::move(manifests))));
-}
-
} // namespace content
« no previous file with comments | « content/browser/payments/payment_app_context_impl.h ('k') | content/browser/payments/payment_app_context_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698