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

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

Issue 2856973002: PaymentHandler: Implement PaymentInstruments.clear(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.clear(). 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
« no previous file with comments | « content/browser/payments/payment_manager.h ('k') | content/browser/payments/payment_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/payments/payment_manager.cc
diff --git a/content/browser/payments/payment_manager.cc b/content/browser/payments/payment_manager.cc
index 0538e227e87c6bef3e94f3c4bbac2b71a6e35f7b..0503518f679fe022021a6edb7566e082ca292be3 100644
--- a/content/browser/payments/payment_manager.cc
+++ b/content/browser/payments/payment_manager.cc
@@ -102,6 +102,14 @@ void PaymentManager::SetPaymentInstrument(
scope_, instrument_key, std::move(details), callback);
}
+void PaymentManager::ClearPaymentInstruments(
+ const ClearPaymentInstrumentsCallback& callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+
+ payment_app_context_->payment_app_database()->ClearPaymentInstruments(
+ scope_, callback);
+}
+
void PaymentManager::OnConnectionError() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
payment_app_context_->PaymentManagerHadConnectionError(this);
« no previous file with comments | « content/browser/payments/payment_manager.h ('k') | content/browser/payments/payment_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698