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

Unified Diff: chrome/browser/payments/payment_request_factory.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: chrome/browser/payments/payment_request_factory.cc
diff --git a/chrome/browser/payments/payment_request_factory.cc b/chrome/browser/payments/payment_request_factory.cc
index ccf596440b801e2af7678690d4e5d11c61fb6ac0..e74a33bfb0c044410560ccb4e915a3d655fd4ef8 100644
--- a/chrome/browser/payments/payment_request_factory.cc
+++ b/chrome/browser/payments/payment_request_factory.cc
@@ -4,25 +4,23 @@
#include "chrome/browser/payments/payment_request_factory.h"
-#include <memory>
+#include <utility>
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "chrome/browser/payments/chrome_payment_request_delegate.h"
#include "components/payments/content/payment_request_web_contents_manager.h"
-#include "components/payments/core/payment_request_delegate.h"
-#include "content/public/browser/web_contents.h"
namespace payments {
-void CreatePaymentRequestForWebContents(
- content::WebContents* web_contents,
- const service_manager::BindSourceInfo& source_info,
- payments::mojom::PaymentRequestRequest request) {
+void CreatePaymentRequest(content::RenderFrameHost* render_frame_host,
+ content::WebContents* web_contents,
+ const service_manager::BindSourceInfo& source_info,
+ mojom::PaymentRequestRequest request) {
DCHECK(web_contents);
PaymentRequestWebContentsManager::GetOrCreateForWebContents(web_contents)
->CreatePaymentRequest(
- web_contents,
+ render_frame_host, web_contents,
base::MakeUnique<ChromePaymentRequestDelegate>(web_contents),
std::move(request),
/*observer_for_testing=*/nullptr);
« no previous file with comments | « chrome/browser/payments/payment_request_factory.h ('k') | chrome/browser/ui/views/payments/payment_request_browsertest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698