[Payments] Implement InvokePaymentApp for service worker payment handler on Desktops
Bug:
Change-Id: I8d82918c8b92414c1aa068b6b5b7f89c9b859e42
Reviewed-on: https://chromium-review.googlesource.com/669679
Reviewed-by: Mathieu Perreault <[email protected]>
Commit-Queue: Ganggui Tang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#502776}
diff --git a/components/payments/content/payment_request.cc b/components/payments/content/payment_request.cc
index 80cc375..cbd40a2 100644
--- a/components/payments/content/payment_request.cc
+++ b/components/payments/content/payment_request.cc
@@ -92,9 +92,9 @@
std::vector<mojom::PaymentMethodDataPtr>(), this,
delegate_->GetApplicationLocale());
state_ = base::MakeUnique<PaymentRequestState>(
- web_contents_->GetBrowserContext(), spec_.get(), this,
- delegate_->GetApplicationLocale(), delegate_->GetPersonalDataManager(),
- delegate_.get(), &journey_logger_);
+ web_contents_->GetBrowserContext(), top_level_origin_, frame_origin_,
+ spec_.get(), this, delegate_->GetApplicationLocale(),
+ delegate_->GetPersonalDataManager(), delegate_.get(), &journey_logger_);
return;
}
@@ -115,9 +115,9 @@
std::move(options), std::move(details), std::move(method_data), this,
delegate_->GetApplicationLocale());
state_ = base::MakeUnique<PaymentRequestState>(
- web_contents_->GetBrowserContext(), spec_.get(), this,
- delegate_->GetApplicationLocale(), delegate_->GetPersonalDataManager(),
- delegate_.get(), &journey_logger_);
+ web_contents_->GetBrowserContext(), top_level_origin_, frame_origin_,
+ spec_.get(), this, delegate_->GetApplicationLocale(),
+ delegate_->GetPersonalDataManager(), delegate_.get(), &journey_logger_);
journey_logger_.SetRequestedInformation(
spec_->request_shipping(), spec_->request_payer_email(),