| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.
h" |
| 6 |
| 7 #include "content/public/browser/web_contents.h" |
| 8 |
| 9 namespace payments { |
| 10 |
| 11 TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate( |
| 12 content::WebContents* web_contents, |
| 13 PaymentRequestDialog::ObserverForTest* observer) |
| 14 : ChromePaymentRequestDelegate(web_contents), observer_(observer) {} |
| 15 |
| 16 void TestChromePaymentRequestDelegate::ShowPaymentRequestDialog( |
| 17 PaymentRequest* request) { |
| 18 PaymentRequestDialog::ShowWebModalPaymentDialog( |
| 19 new PaymentRequestDialog(request, observer_), request); |
| 20 } |
| 21 |
| 22 } // namespace payments |
| OLD | NEW |