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

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

Issue 2775193004: [Payments] Have an observer for canMakePayment, for testing. (Closed)
Patch Set: addressed comments Created 3 years, 9 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
« no previous file with comments | « components/payments/content/payment_request_web_contents_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 db68134c47cf82d4ffb92e54f75601718e7a2b9f..a0f95da92e3f13e7031b661234b6bb7f3b3b7442 100644
--- a/components/payments/content/payment_request_web_contents_manager.cc
+++ b/components/payments/content/payment_request_web_contents_manager.cc
@@ -30,9 +30,11 @@ PaymentRequestWebContentsManager::GetOrCreateForWebContents(
void PaymentRequestWebContentsManager::CreatePaymentRequest(
content::WebContents* web_contents,
std::unique_ptr<PaymentRequestDelegate> delegate,
- mojo::InterfaceRequest<payments::mojom::PaymentRequest> request) {
+ 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));
+ 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698