Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: chrome/browser/android/chrome_feature_list.cc

Issue 2274693004: Separate credit card scanner from native bridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/android/chrome_feature_list.h" 5 #include "chrome/browser/android/chrome_feature_list.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/feature_list.h" 12 #include "base/feature_list.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/common/chrome_features.h" 14 #include "chrome/common/chrome_features.h"
15 #include "components/autofill/core/browser/autofill_experiments.h"
15 #include "components/ntp_snippets/features.h" 16 #include "components/ntp_snippets/features.h"
16 #include "components/offline_pages/offline_page_feature.h" 17 #include "components/offline_pages/offline_page_feature.h"
17 #include "components/password_manager/core/common/password_manager_features.h" 18 #include "components/password_manager/core/common/password_manager_features.h"
18 #include "content/public/common/content_features.h" 19 #include "content/public/common/content_features.h"
19 #include "jni/ChromeFeatureList_jni.h" 20 #include "jni/ChromeFeatureList_jni.h"
20 21
21 using base::android::ConvertJavaStringToUTF8; 22 using base::android::ConvertJavaStringToUTF8;
22 using base::android::JavaParamRef; 23 using base::android::JavaParamRef;
23 24
24 namespace chrome { 25 namespace chrome {
25 namespace android { 26 namespace android {
26 27
27 namespace { 28 namespace {
28 29
29 // Array of features exposed through the Java ChromeFeatureList API. Entries in 30 // Array of features exposed through the Java ChromeFeatureList API. Entries in
30 // this array may either refer to features defined in the header of this file or 31 // this array may either refer to features defined in the header of this file or
31 // in other locations in the code base (e.g. chrome/, components/, etc). 32 // in other locations in the code base (e.g. chrome/, components/, etc).
32 const base::Feature* kFeaturesExposedToJava[] = { 33 const base::Feature* kFeaturesExposedToJava[] = {
34 &autofill::kAutofillScanCardholderName,
33 &features::kAutoplayMutedVideos, 35 &features::kAutoplayMutedVideos,
34 &features::kCredentialManagementAPI, 36 &features::kCredentialManagementAPI,
35 &features::kSimplifiedFullscreenUI, 37 &features::kSimplifiedFullscreenUI,
36 &features::kWebPayments, 38 &features::kWebPayments,
37 &kAllBookmarksFeature, 39 &kAllBookmarksFeature,
40 &kAndroidPayIntegrationV1,
38 &kDownloadsUiFeature, 41 &kDownloadsUiFeature,
39 &kAndroidPayIntegrationV1,
40 &kImportantSitesInCBD, 42 &kImportantSitesInCBD,
41 &ntp_snippets::kContentSuggestionsFeature, 43 &ntp_snippets::kContentSuggestionsFeature,
42 &ntp_snippets::kSaveToOfflineFeature, 44 &ntp_snippets::kSaveToOfflineFeature,
43 &kNTPFakeOmniboxTextFeature, 45 &kNTPFakeOmniboxTextFeature,
44 &kNTPMaterialDesign, 46 &kNTPMaterialDesign,
45 &kNTPOfflinePagesFeature, 47 &kNTPOfflinePagesFeature,
46 &kPhysicalWebFeature, 48 &kPhysicalWebFeature,
47 &kPhysicalWebIgnoreOtherClientsFeature, 49 &kPhysicalWebIgnoreOtherClientsFeature,
48 &kReadItLaterInMenu, 50 &kReadItLaterInMenu,
49 &kSpecialLocaleFeature, 51 &kSpecialLocaleFeature,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 NOTREACHED(); 116 NOTREACHED();
115 return false; 117 return false;
116 } 118 }
117 119
118 bool RegisterChromeFeatureListJni(JNIEnv* env) { 120 bool RegisterChromeFeatureListJni(JNIEnv* env) {
119 return RegisterNativesImpl(env); 121 return RegisterNativesImpl(env);
120 } 122 }
121 123
122 } // namespace android 124 } // namespace android
123 } // namespace chrome 125 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/android/java_sources.gni ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698