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 21 matching lines...) Expand all Loading... |
32 | 32 |
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::kNativeAndroidHistoryManager, | |
43 &features::kServiceWorkerPaymentApps, | 42 &features::kServiceWorkerPaymentApps, |
44 &features::kSimplifiedFullscreenUI, | 43 &features::kSimplifiedFullscreenUI, |
45 &features::kVrShell, | 44 &features::kVrShell, |
46 &features::kWebPayments, | 45 &features::kWebPayments, |
47 &features::kTabsInCbd, | 46 &features::kTabsInCbd, |
48 &kAndroidPayIntegrationV1, | 47 &kAndroidPayIntegrationV1, |
49 &kAndroidPayIntegrationV2, | 48 &kAndroidPayIntegrationV2, |
50 &kAndroidPaymentApps, | 49 &kAndroidPaymentApps, |
51 &kCCTBackgroundTab, | 50 &kCCTBackgroundTab, |
52 &kCCTExternalLinkHandling, | 51 &kCCTExternalLinkHandling, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 280 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
282 jdefault_value); | 281 jdefault_value); |
283 } | 282 } |
284 | 283 |
285 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 284 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
286 return RegisterNativesImpl(env); | 285 return RegisterNativesImpl(env); |
287 } | 286 } |
288 | 287 |
289 } // namespace android | 288 } // namespace android |
290 } // namespace chrome | 289 } // namespace chrome |
OLD | NEW |