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

Side by Side Diff: chrome/browser/payments/payment_request_factory.cc

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/payments/payment_request_factory.h" 5 #include "chrome/browser/payments/payment_request_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "chrome/browser/payments/chrome_payment_request_delegate.h" 11 #include "chrome/browser/payments/chrome_payment_request_delegate.h"
12 #include "components/payments/content/payment_request_web_contents_manager.h" 12 #include "components/payments/content/payment_request_web_contents_manager.h"
13 #include "components/payments/core/payment_request_delegate.h" 13 #include "components/payments/core/payment_request_delegate.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 15
16 namespace payments { 16 namespace payments {
17 17
18 void CreatePaymentRequestForWebContents( 18 void CreatePaymentRequestForWebContents(
19 content::WebContents* web_contents, 19 content::WebContents* web_contents,
20 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request) { 20 const service_manager::BindSourceInfo& source_info,
21 payments::mojom::PaymentRequestRequest request) {
21 DCHECK(web_contents); 22 DCHECK(web_contents);
22 PaymentRequestWebContentsManager::GetOrCreateForWebContents(web_contents) 23 PaymentRequestWebContentsManager::GetOrCreateForWebContents(web_contents)
23 ->CreatePaymentRequest( 24 ->CreatePaymentRequest(
24 web_contents, 25 web_contents,
25 base::MakeUnique<ChromePaymentRequestDelegate>(web_contents), 26 base::MakeUnique<ChromePaymentRequestDelegate>(web_contents),
26 std::move(request), 27 std::move(request),
27 /*observer_for_testing=*/nullptr); 28 /*observer_for_testing=*/nullptr);
28 } 29 }
29 30
30 } // namespace payments 31 } // namespace payments
OLDNEW
« no previous file with comments | « chrome/browser/payments/payment_request_factory.h ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698