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

Unified Diff: components/payments/content/payment_request_web_contents_manager.cc

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: 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: components/payments/content/payment_request_web_contents_manager.cc
diff --git a/components/payments/content/payment_request_web_contents_manager.cc b/components/payments/content/payment_request_web_contents_manager.cc
index 2f11a65ebdb6a5f7778791e63d4acc58897ab0ca..bf1f1034efebd4b927833c64c08d6ffd32131b3f 100644
--- a/components/payments/content/payment_request_web_contents_manager.cc
+++ b/components/payments/content/payment_request_web_contents_manager.cc
@@ -28,13 +28,14 @@ PaymentRequestWebContentsManager::GetOrCreateForWebContents(
}
void PaymentRequestWebContentsManager::CreatePaymentRequest(
+ content::RenderFrameHost* render_frame_host,
content::WebContents* web_contents,
std::unique_ptr<PaymentRequestDelegate> delegate,
mojo::InterfaceRequest<payments::mojom::PaymentRequest> request,
PaymentRequest::ObserverForTest* observer_for_testing) {
auto new_request = base::MakeUnique<PaymentRequest>(
- web_contents, std::move(delegate), this, std::move(request),
- observer_for_testing);
+ render_frame_host, web_contents, std::move(delegate), this,
+ std::move(request), observer_for_testing);
PaymentRequest* request_ptr = new_request.get();
payment_requests_.insert(std::make_pair(request_ptr, std::move(new_request)));
}

Powered by Google App Engine
This is Rietveld 408576698