| 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 namespace android { | 32 namespace android { |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 // Array of features exposed through the Java ChromeFeatureList API. Entries in | 36 // Array of features exposed through the Java ChromeFeatureList API. Entries in |
| 37 // this array may either refer to features defined in the header of this file or | 37 // this array may either refer to features defined in the header of this file or |
| 38 // in other locations in the code base (e.g. chrome/, components/, etc). | 38 // in other locations in the code base (e.g. chrome/, components/, etc). |
| 39 const base::Feature* kFeaturesExposedToJava[] = { | 39 const base::Feature* kFeaturesExposedToJava[] = { |
| 40 &autofill::kAutofillScanCardholderName, | 40 &autofill::kAutofillScanCardholderName, |
| 41 &features::kConsistentOmniboxGeolocation, | 41 &features::kConsistentOmniboxGeolocation, |
| 42 &features::kCopylessPaste, |
| 42 &features::kCredentialManagementAPI, | 43 &features::kCredentialManagementAPI, |
| 43 &features::kNativeAndroidHistoryManager, | 44 &features::kNativeAndroidHistoryManager, |
| 44 &features::kServiceWorkerPaymentApps, | 45 &features::kServiceWorkerPaymentApps, |
| 45 &features::kSimplifiedFullscreenUI, | 46 &features::kSimplifiedFullscreenUI, |
| 46 &features::kVrShell, | 47 &features::kVrShell, |
| 47 &features::kWebPayments, | 48 &features::kWebPayments, |
| 48 &kAndroidPayIntegrationV1, | 49 &kAndroidPayIntegrationV1, |
| 49 &kAndroidPayIntegrationV2, | 50 &kAndroidPayIntegrationV2, |
| 50 &kAndroidPaymentApps, | 51 &kAndroidPaymentApps, |
| 51 &kAndroidPaymentAppsFilter, | 52 &kAndroidPaymentAppsFilter, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 264 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 264 jdefault_value); | 265 jdefault_value); |
| 265 } | 266 } |
| 266 | 267 |
| 267 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 268 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 268 return RegisterNativesImpl(env); | 269 return RegisterNativesImpl(env); |
| 269 } | 270 } |
| 270 | 271 |
| 271 } // namespace android | 272 } // namespace android |
| 272 } // namespace chrome | 273 } // namespace chrome |
| OLD | NEW |