Chromium Code Reviews

Side by Side Diff: chrome/browser/ui/autofill/credit_card_scanner_view.cc

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 "chrome/browser/ui/autofill/credit_card_scanner_view.h" 5 #include "chrome/browser/ui/autofill/credit_card_scanner_view.h"
6 #include "chrome/common/features.h"
6 7
7 namespace autofill { 8 namespace autofill {
8 9
9 // Not implemented on other platforms yet. 10 // Not implemented on other platforms yet.
10 #if !defined(OS_ANDROID) 11 #if !BUILDFLAG(ANDROID_JAVA_UI)
11 // static 12 // static
12 bool CreditCardScannerView::CanShow() { 13 bool CreditCardScannerView::CanShow() {
13 return false; 14 return false;
14 } 15 }
15 16
16 // static 17 // static
17 scoped_ptr<CreditCardScannerView> CreditCardScannerView::Create( 18 scoped_ptr<CreditCardScannerView> CreditCardScannerView::Create(
18 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate, 19 const base::WeakPtr<CreditCardScannerViewDelegate>& delegate,
19 content::WebContents* web_contents) { 20 content::WebContents* web_contents) {
20 return scoped_ptr<CreditCardScannerView>(); 21 return scoped_ptr<CreditCardScannerView>();
21 } 22 }
22 #endif // !defined(OS_ANDROID) 23 #endif // !defined(OS_ANDROID)
23 24
24 } // namespace autofill 25 } // namespace autofill
OLDNEW

Powered by Google App Engine