OLD | NEW |
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 |
(...skipping 22 matching lines...) Expand all Loading... |
33 namespace { | 33 namespace { |
34 | 34 |
35 // Array of features exposed through the Java ChromeFeatureList API. Entries in | 35 // Array of features exposed through the Java ChromeFeatureList API. Entries in |
36 // this array may either refer to features defined in the header of this file or | 36 // this array may either refer to features defined in the header of this file or |
37 // in other locations in the code base (e.g. chrome/, components/, etc). | 37 // in other locations in the code base (e.g. chrome/, components/, etc). |
38 const base::Feature* kFeaturesExposedToJava[] = { | 38 const base::Feature* kFeaturesExposedToJava[] = { |
39 &autofill::kAutofillScanCardholderName, | 39 &autofill::kAutofillScanCardholderName, |
40 &features::kConsistentOmniboxGeolocation, | 40 &features::kConsistentOmniboxGeolocation, |
41 &features::kCopylessPaste, | 41 &features::kCopylessPaste, |
42 &features::kCredentialManagementAPI, | 42 &features::kCredentialManagementAPI, |
43 &features::kNativeAndroidHistoryManager, | |
44 &features::kServiceWorkerPaymentApps, | 43 &features::kServiceWorkerPaymentApps, |
45 &features::kSimplifiedFullscreenUI, | 44 &features::kSimplifiedFullscreenUI, |
46 &features::kVrShell, | 45 &features::kVrShell, |
47 &features::kWebPayments, | 46 &features::kWebPayments, |
48 &kAndroidPayIntegrationV1, | 47 &kAndroidPayIntegrationV1, |
49 &kAndroidPayIntegrationV2, | 48 &kAndroidPayIntegrationV2, |
50 &kAndroidPaymentApps, | 49 &kAndroidPaymentApps, |
51 &kCCTBackgroundTab, | 50 &kCCTBackgroundTab, |
52 &kCCTExternalLinkHandling, | 51 &kCCTExternalLinkHandling, |
53 &kCCTPostMessageAPI, | 52 &kCCTPostMessageAPI, |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 277 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
279 jdefault_value); | 278 jdefault_value); |
280 } | 279 } |
281 | 280 |
282 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 281 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
283 return RegisterNativesImpl(env); | 282 return RegisterNativesImpl(env); |
284 } | 283 } |
285 | 284 |
286 } // namespace android | 285 } // namespace android |
287 } // namespace chrome | 286 } // namespace chrome |
OLD | NEW |