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

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

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame 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 1c15003aed3828a49399491cc4d2a79526a1870f..1d186e1d6cc3bf19de761c4fbb3b43436f5758aa 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)));
}
« no previous file with comments | « components/payments/content/payment_request_web_contents_manager.h ('k') | components/payments/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698