Index: content/browser/payments/payment_manager.cc |
diff --git a/content/browser/payments/payment_manager.cc b/content/browser/payments/payment_manager.cc |
index f1a9cc0f11d5a3bfcc1d2558562885279ae74d4a..0538e227e87c6bef3e94f3c4bbac2b71a6e35f7b 100644 |
--- a/content/browser/payments/payment_manager.cc |
+++ b/content/browser/payments/payment_manager.cc |
@@ -66,32 +66,40 @@ void PaymentManager::DeletePaymentInstrument( |
scope_, instrument_key, callback); |
} |
-void PaymentManager::SetPaymentInstrument( |
+void PaymentManager::GetPaymentInstrument( |
const std::string& instrument_key, |
- payments::mojom::PaymentInstrumentPtr details, |
- const PaymentManager::SetPaymentInstrumentCallback& callback) { |
+ const PaymentManager::GetPaymentInstrumentCallback& callback) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
- payment_app_context_->payment_app_database()->WritePaymentInstrument( |
- scope_, instrument_key, std::move(details), callback); |
+ payment_app_context_->payment_app_database()->ReadPaymentInstrument( |
+ scope_, instrument_key, callback); |
+} |
+ |
+void PaymentManager::KeysOfPaymentInstruments( |
+ const PaymentManager::KeysOfPaymentInstrumentsCallback& callback) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ |
+ payment_app_context_->payment_app_database()->KeysOfPaymentInstruments( |
+ scope_, callback); |
} |
void PaymentManager::HasPaymentInstrument( |
const std::string& instrument_key, |
- const HasPaymentInstrumentCallback& callback) { |
+ const PaymentManager::HasPaymentInstrumentCallback& callback) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
payment_app_context_->payment_app_database()->HasPaymentInstrument( |
scope_, instrument_key, callback); |
} |
-void PaymentManager::GetPaymentInstrument( |
+void PaymentManager::SetPaymentInstrument( |
const std::string& instrument_key, |
- const PaymentManager::GetPaymentInstrumentCallback& callback) { |
+ payments::mojom::PaymentInstrumentPtr details, |
+ const PaymentManager::SetPaymentInstrumentCallback& callback) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
- payment_app_context_->payment_app_database()->ReadPaymentInstrument( |
- scope_, instrument_key, callback); |
+ payment_app_context_->payment_app_database()->WritePaymentInstrument( |
+ scope_, instrument_key, std::move(details), callback); |
} |
void PaymentManager::OnConnectionError() { |