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

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

Issue 2844463002: PaymentHandler: Implement PaymentInstruments.delete(). (Closed)
Patch Set: Created 3 years, 8 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_manager.cc
diff --git a/content/browser/payments/payment_manager.cc b/content/browser/payments/payment_manager.cc
index 62aca5c85d905fd0c88f7bc6406408c5bca939c5..2454d48a124f82285fb29e611921cd02262b6b0a 100644
--- a/content/browser/payments/payment_manager.cc
+++ b/content/browser/payments/payment_manager.cc
@@ -57,6 +57,15 @@ void PaymentManager::GetManifest(const GetManifestCallback& callback) {
payment_app_context_->payment_app_database()->ReadManifest(scope_, callback);
}
+void PaymentManager::DeletePaymentInstrument(
+ const std::string& instrumentKey,
please use gerrit instead 2017/04/25 15:21:40 hacker_case
zino 2017/04/25 21:48:51 Done.
+ const PaymentManager::DeletePaymentInstrumentCallback& callback) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+
+ payment_app_context_->payment_app_database()->DeletePaymentInstrument(
+ scope_, instrumentKey, callback);
+}
+
void PaymentManager::SetPaymentInstrument(
const std::string& instrumentKey,
payments::mojom::PaymentInstrumentPtr details,

Powered by Google App Engine
This is Rietveld 408576698