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