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/ui/views/payments/test_chrome_payment_request_delegate.
h" | 5 #include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.
h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 bool TestChromePaymentRequestDelegate::IsIncognito() const { | 40 bool TestChromePaymentRequestDelegate::IsIncognito() const { |
41 return is_incognito_; | 41 return is_incognito_; |
42 } | 42 } |
43 | 43 |
44 bool TestChromePaymentRequestDelegate::IsSslCertificateValid() { | 44 bool TestChromePaymentRequestDelegate::IsSslCertificateValid() { |
45 return is_valid_ssl_; | 45 return is_valid_ssl_; |
46 } | 46 } |
47 | 47 |
48 std::unique_ptr<const ::i18n::addressinput::Source> | 48 std::unique_ptr<::i18n::addressinput::Source> |
49 TestChromePaymentRequestDelegate::GetAddressInputSource() { | 49 TestChromePaymentRequestDelegate::GetAddressInputSource() { |
50 if (address_input_provider_) | 50 if (address_input_provider_) |
51 return address_input_provider_->GetAddressInputSource(); | 51 return address_input_provider_->GetAddressInputSource(); |
52 return ChromePaymentRequestDelegate::GetAddressInputSource(); | 52 return ChromePaymentRequestDelegate::GetAddressInputSource(); |
53 } | 53 } |
54 | 54 |
55 std::unique_ptr<::i18n::addressinput::Storage> | 55 std::unique_ptr<::i18n::addressinput::Storage> |
56 TestChromePaymentRequestDelegate::GetAddressInputStorage() { | 56 TestChromePaymentRequestDelegate::GetAddressInputStorage() { |
57 if (address_input_provider_) | 57 if (address_input_provider_) |
58 return address_input_provider_->GetAddressInputStorage(); | 58 return address_input_provider_->GetAddressInputStorage(); |
59 return ChromePaymentRequestDelegate::GetAddressInputStorage(); | 59 return ChromePaymentRequestDelegate::GetAddressInputStorage(); |
60 } | 60 } |
61 | 61 |
62 } // namespace payments | 62 } // namespace payments |
OLD | NEW |