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

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

Issue 2875493003: PaymentHandler: Remove PaymentAppManifest and PaymentAppOption. (Closed)
Patch Set: global-interface-listing Created 3 years, 7 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_provider_impl.cc
diff --git a/content/browser/payments/payment_app_provider_impl.cc b/content/browser/payments/payment_app_provider_impl.cc
index 293f10d8ebda48a0d3722df4a541726b0b745ab1..73f3cbac6682f2251765b342ce1b801c81ee8c3b 100644
--- a/content/browser/payments/payment_app_provider_impl.cc
+++ b/content/browser/payments/payment_app_provider_impl.cc
@@ -56,23 +56,6 @@ class ResponseCallback : public payments::mojom::PaymentAppResponseCallback {
mojo::Binding<payments::mojom::PaymentAppResponseCallback> binding_;
};
-void DidGetAllManifestsOnIO(
- const PaymentAppProvider::GetAllManifestsCallback& callback,
- PaymentAppProvider::Manifests manifests) {
- BrowserThread::PostTask(
- BrowserThread::UI, FROM_HERE,
- base::Bind(callback, base::Passed(std::move(manifests))));
-}
-
-void GetAllManifestsOnIO(
- scoped_refptr<PaymentAppContextImpl> payment_app_context,
- const PaymentAppProvider::GetAllManifestsCallback& callback) {
- DCHECK_CURRENTLY_ON(BrowserThread::IO);
-
- payment_app_context->payment_app_database()->ReadAllManifests(
- base::Bind(&DidGetAllManifestsOnIO, callback));
-}
-
void DidGetAllPaymentAppsOnIO(
PaymentAppProvider::GetAllPaymentAppsCallback callback,
PaymentAppProvider::PaymentApps apps) {
@@ -165,21 +148,6 @@ PaymentAppProviderImpl* PaymentAppProviderImpl::GetInstance() {
return base::Singleton<PaymentAppProviderImpl>::get();
}
-void PaymentAppProviderImpl::GetAllManifests(
- BrowserContext* browser_context,
- const GetAllManifestsCallback& callback) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
-
- StoragePartitionImpl* partition = static_cast<StoragePartitionImpl*>(
- BrowserContext::GetDefaultStoragePartition(browser_context));
- scoped_refptr<PaymentAppContextImpl> payment_app_context =
- partition->GetPaymentAppContext();
-
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&GetAllManifestsOnIO, payment_app_context, callback));
-}
-
void PaymentAppProviderImpl::GetAllPaymentApps(
BrowserContext* browser_context,
GetAllPaymentAppsCallback callback) {
« no previous file with comments | « content/browser/payments/payment_app_provider_impl.h ('k') | content/browser/payments/payment_app_provider_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698