| Index: content/browser/payments/payment_app_manager.cc
|
| diff --git a/content/browser/payments/payment_app_manager.cc b/content/browser/payments/payment_app_manager.cc
|
| index 52b3c7d170cede2814da910837e41ebbcea7dfdb..0a639e2d122852bd16d9b5fd66334d82dfa29530 100644
|
| --- a/content/browser/payments/payment_app_manager.cc
|
| +++ b/content/browser/payments/payment_app_manager.cc
|
| @@ -35,8 +35,11 @@ PaymentAppManager::PaymentAppManager(
|
| base::Unretained(this)));
|
| }
|
|
|
| +void PaymentAppManager::Init(const std::string& scope) {
|
| + m_scope = GURL(scope);
|
| +}
|
| +
|
| void PaymentAppManager::SetManifest(
|
| - const std::string& scope,
|
| payments::mojom::PaymentAppManifestPtr manifest,
|
| const SetManifestCallback& callback) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| @@ -45,15 +48,13 @@ void PaymentAppManager::SetManifest(
|
| // the payment app to be registered. Please see http://crbug.com/665949.
|
|
|
| payment_app_context_->payment_app_database()->WriteManifest(
|
| - GURL(scope), std::move(manifest), callback);
|
| + m_scope, std::move(manifest), callback);
|
| }
|
|
|
| -void PaymentAppManager::GetManifest(const std::string& scope,
|
| - const GetManifestCallback& callback) {
|
| +void PaymentAppManager::GetManifest(const GetManifestCallback& callback) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| - payment_app_context_->payment_app_database()->ReadManifest(GURL(scope),
|
| - callback);
|
| + payment_app_context_->payment_app_database()->ReadManifest(m_scope, callback);
|
| }
|
|
|
| void PaymentAppManager::OnConnectionError() {
|
|
|