| OLD | NEW |
| 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 |
| OLD | NEW |