OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/ui/autofill/credit_card_scanner_view.h" | 6 #include "chrome/browser/ui/autofill/credit_card_scanner_view.h" |
7 #include "chrome/common/features.h" | |
8 | 7 |
9 namespace autofill { | 8 namespace autofill { |
10 | 9 |
11 // Not implemented on other platforms yet. | 10 // Not implemented on other platforms yet. |
12 #if !BUILDFLAG(ANDROID_JAVA_UI) | 11 #if !defined(OS_ANDROID) |
13 // static | 12 // static |
14 bool CreditCardScannerView::CanShow() { | 13 bool CreditCardScannerView::CanShow() { |
15 return false; | 14 return false; |
16 } | 15 } |
17 | 16 |
18 // static | 17 // static |
19 std::unique_ptr<CreditCardScannerView> CreditCardScannerView::Create( | 18 std::unique_ptr<CreditCardScannerView> CreditCardScannerView::Create( |
20 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate, | 19 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate, |
21 content::WebContents* web_contents) { | 20 content::WebContents* web_contents) { |
22 return std::unique_ptr<CreditCardScannerView>(); | 21 return std::unique_ptr<CreditCardScannerView>(); |
23 } | 22 } |
24 #endif // !defined(OS_ANDROID) | 23 #endif // !defined(OS_ANDROID) |
25 | 24 |
26 } // namespace autofill | 25 } // namespace autofill |
OLD | NEW |