| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // Array of features exposed through the Java ChromeFeatureList API. Entries in | 33 // Array of features exposed through the Java ChromeFeatureList API. Entries in |
| 34 // this array may either refer to features defined in the header of this file or | 34 // this array may either refer to features defined in the header of this file or |
| 35 // in other locations in the code base (e.g. chrome/, components/, etc). | 35 // in other locations in the code base (e.g. chrome/, components/, etc). |
| 36 const base::Feature* kFeaturesExposedToJava[] = { | 36 const base::Feature* kFeaturesExposedToJava[] = { |
| 37 &autofill::kAutofillScanCardholderName, | 37 &autofill::kAutofillScanCardholderName, |
| 38 &features::kConsistentOmniboxGeolocation, | 38 &features::kConsistentOmniboxGeolocation, |
| 39 &features::kCredentialManagementAPI, | 39 &features::kCredentialManagementAPI, |
| 40 &features::kImportantSitesInCBD, |
| 40 &features::kNativeAndroidHistoryManager, | 41 &features::kNativeAndroidHistoryManager, |
| 41 &features::kServiceWorkerPaymentApps, | 42 &features::kServiceWorkerPaymentApps, |
| 42 &features::kSimplifiedFullscreenUI, | 43 &features::kSimplifiedFullscreenUI, |
| 43 &features::kVrShell, | 44 &features::kVrShell, |
| 44 &features::kWebPayments, | 45 &features::kWebPayments, |
| 45 &kAndroidPayIntegrationV1, | 46 &kAndroidPayIntegrationV1, |
| 46 &kAndroidPayIntegrationV2, | 47 &kAndroidPayIntegrationV2, |
| 47 &kAndroidPaymentApps, | 48 &kAndroidPaymentApps, |
| 48 &kAndroidPaymentAppsFilter, | 49 &kAndroidPaymentAppsFilter, |
| 49 &kCCTExternalLinkHandling, | 50 &kCCTExternalLinkHandling, |
| 50 &kCCTPostMessageAPI, | 51 &kCCTPostMessageAPI, |
| 51 &kChromeHomeFeature, | 52 &kChromeHomeFeature, |
| 52 &kContextualSearchSingleActions, | 53 &kContextualSearchSingleActions, |
| 53 &kContextualSearchUrlActions, | 54 &kContextualSearchUrlActions, |
| 54 &kCustomFeedbackUi, | 55 &kCustomFeedbackUi, |
| 55 &kImportantSitesInCBD, | |
| 56 &kImprovedA2HS, | 56 &kImprovedA2HS, |
| 57 &kNewPhotoPicker, | 57 &kNewPhotoPicker, |
| 58 &kNoCreditCardAbort, | 58 &kNoCreditCardAbort, |
| 59 &kNTPCondensedLayoutFeature, | 59 &kNTPCondensedLayoutFeature, |
| 60 &kNTPCondensedTileLayoutFeature, | 60 &kNTPCondensedTileLayoutFeature, |
| 61 &kNTPFakeOmniboxTextFeature, | 61 &kNTPFakeOmniboxTextFeature, |
| 62 &kNTPLaunchAfterInactivity, | 62 &kNTPLaunchAfterInactivity, |
| 63 &kNTPOfflinePagesFeature, | 63 &kNTPOfflinePagesFeature, |
| 64 &NTPShowGoogleGInOmniboxFeature, | 64 &NTPShowGoogleGInOmniboxFeature, |
| 65 &kPhysicalWebFeature, | 65 &kPhysicalWebFeature, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 const base::Feature kContextualSearchUrlActions{ | 122 const base::Feature kContextualSearchUrlActions{ |
| 123 "ContextualSearchUrlActions", base::FEATURE_DISABLED_BY_DEFAULT}; | 123 "ContextualSearchUrlActions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 124 | 124 |
| 125 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", | 125 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", |
| 126 base::FEATURE_DISABLED_BY_DEFAULT}; | 126 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 127 | 127 |
| 128 const base::Feature kDownloadAutoResumptionThrottling{ | 128 const base::Feature kDownloadAutoResumptionThrottling{ |
| 129 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 129 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 130 | 130 |
| 131 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | |
| 132 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 133 | |
| 134 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut | 131 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut |
| 135 // URL which opens Chrome in fullscreen. | 132 // URL which opens Chrome in fullscreen. |
| 136 const base::Feature kImprovedA2HS{"ImprovedA2HS", | 133 const base::Feature kImprovedA2HS{"ImprovedA2HS", |
| 137 base::FEATURE_DISABLED_BY_DEFAULT}; | 134 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 138 | 135 |
| 139 const base::Feature kNewPhotoPicker{"NewPhotoPicker", | 136 const base::Feature kNewPhotoPicker{"NewPhotoPicker", |
| 140 base::FEATURE_DISABLED_BY_DEFAULT}; | 137 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 141 | 138 |
| 142 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", | 139 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", |
| 143 base::FEATURE_DISABLED_BY_DEFAULT}; | 140 base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 251 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 255 jdefault_value); | 252 jdefault_value); |
| 256 } | 253 } |
| 257 | 254 |
| 258 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 255 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 259 return RegisterNativesImpl(env); | 256 return RegisterNativesImpl(env); |
| 260 } | 257 } |
| 261 | 258 |
| 262 } // namespace android | 259 } // namespace android |
| 263 } // namespace chrome | 260 } // namespace chrome |
| OLD | NEW |