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

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

Issue 2611253004: [Payment Request] Change the lifetime management of PaymentRequestImpl (Closed)
Patch Set: PaymentRequestImpl -> PaymentRequest Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/payments/payment_request_factory.h"
6
7 #include <memory>
8
9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h"
11 #include "chrome/browser/payments/chrome_payment_request_delegate.h"
12 #include "components/payments/payment_request_delegate.h"
13 #include "components/payments/payment_request_web_contents_manager.h"
14 #include "content/public/browser/web_contents.h"
15
16 namespace payments {
17
18 void CreatePaymentRequestForWebContents(
19 content::WebContents* web_contents,
20 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request) {
21 DCHECK(web_contents);
22 PaymentRequestWebContentsManager::GetOrCreateForWebContents(web_contents)
23 ->CreatePaymentRequest(web_contents,
24 base::MakeUnique<ChromePaymentRequestDelegate>(),
25 std::move(request));
26 }
27
28 } // namespace payments
OLDNEW
« no previous file with comments | « chrome/browser/payments/payment_request_factory.h ('k') | chrome/browser/payments/payment_request_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698