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

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

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)
Patch Set: Initial patch 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/chrome_payment_request_delegate.h" 5 #include "chrome/browser/payments/chrome_payment_request_delegate.h"
6 6
7 #include "chrome/browser/autofill/personal_data_manager_factory.h"
8 #include "chrome/browser/profiles/profile.h"
7 #include "chrome/browser/ui/browser_dialogs.h" 9 #include "chrome/browser/ui/browser_dialogs.h"
10 #include "content/public/browser/web_contents.h"
8 11
9 namespace payments { 12 namespace payments {
10 13
11 void ChromePaymentRequestDelegate::ShowPaymentRequestDialog( 14 void ChromePaymentRequestDelegate::ShowPaymentRequestDialog(
12 PaymentRequest* request) { 15 PaymentRequest* request) {
13 chrome::ShowPaymentRequestDialog(request); 16 chrome::ShowPaymentRequestDialog(request);
14 } 17 }
15 18
19 autofill::PersonalDataManager*
20 ChromePaymentRequestDelegate::GetDataManagerFromWebContents(
21 content::WebContents* web_contents) {
22 return autofill::PersonalDataManagerFactory::GetForProfile(
23 Profile::FromBrowserContext(web_contents->GetBrowserContext()));
24 }
25
16 } // namespace payments 26 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698