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 23 matching lines...) Expand all Loading... |
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::kCopylessPaste, |
43 &features::kCredentialManagementAPI, | 43 &features::kCredentialManagementAPI, |
| 44 &features::kImportantSitesInCbd, |
44 &features::kNativeAndroidHistoryManager, | 45 &features::kNativeAndroidHistoryManager, |
45 &features::kServiceWorkerPaymentApps, | 46 &features::kServiceWorkerPaymentApps, |
46 &features::kSimplifiedFullscreenUI, | 47 &features::kSimplifiedFullscreenUI, |
47 &features::kVrShell, | 48 &features::kVrShell, |
48 &features::kWebPayments, | 49 &features::kWebPayments, |
49 &kAndroidPayIntegrationV1, | 50 &kAndroidPayIntegrationV1, |
50 &kAndroidPayIntegrationV2, | 51 &kAndroidPayIntegrationV2, |
51 &kAndroidPaymentApps, | 52 &kAndroidPaymentApps, |
52 &kAndroidPaymentAppsFilter, | 53 &kAndroidPaymentAppsFilter, |
53 &kCCTExternalLinkHandling, | 54 &kCCTExternalLinkHandling, |
54 &kCCTPostMessageAPI, | 55 &kCCTPostMessageAPI, |
55 &kChromeHomeFeature, | 56 &kChromeHomeFeature, |
56 &kContentSuggestionsSettings, | 57 &kContentSuggestionsSettings, |
57 &kContextualSearchSingleActions, | 58 &kContextualSearchSingleActions, |
58 &kContextualSearchUrlActions, | 59 &kContextualSearchUrlActions, |
59 &kCustomContextMenu, | 60 &kCustomContextMenu, |
60 &kCustomFeedbackUi, | 61 &kCustomFeedbackUi, |
61 &data_reduction_proxy::features::kDataReductionMainMenu, | 62 &data_reduction_proxy::features::kDataReductionMainMenu, |
62 &data_reduction_proxy::features::kDataReductionSiteBreakdown, | 63 &data_reduction_proxy::features::kDataReductionSiteBreakdown, |
63 &kFullscreenActivity, | 64 &kFullscreenActivity, |
64 &kImportantSitesInCBD, | |
65 &kImprovedA2HS, | 65 &kImprovedA2HS, |
66 &kNewPhotoPicker, | 66 &kNewPhotoPicker, |
67 &kNoCreditCardAbort, | 67 &kNoCreditCardAbort, |
68 &kNTPCondensedLayoutFeature, | 68 &kNTPCondensedLayoutFeature, |
69 &kNTPCondensedTileLayoutFeature, | 69 &kNTPCondensedTileLayoutFeature, |
70 &kNTPLaunchAfterInactivity, | 70 &kNTPLaunchAfterInactivity, |
71 &kNTPOfflinePagesFeature, | 71 &kNTPOfflinePagesFeature, |
72 &NTPShowGoogleGInOmniboxFeature, | 72 &NTPShowGoogleGInOmniboxFeature, |
73 &kPhysicalWebFeature, | 73 &kPhysicalWebFeature, |
74 &kPhysicalWebSharing, | 74 &kPhysicalWebSharing, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", | 140 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", |
141 base::FEATURE_DISABLED_BY_DEFAULT}; | 141 base::FEATURE_DISABLED_BY_DEFAULT}; |
142 | 142 |
143 const base::Feature kDownloadAutoResumptionThrottling{ | 143 const base::Feature kDownloadAutoResumptionThrottling{ |
144 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 144 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
145 | 145 |
146 const base::Feature kFullscreenActivity{"FullscreenActivity", | 146 const base::Feature kFullscreenActivity{"FullscreenActivity", |
147 base::FEATURE_ENABLED_BY_DEFAULT}; | 147 base::FEATURE_ENABLED_BY_DEFAULT}; |
148 | 148 |
149 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | |
150 base::FEATURE_DISABLED_BY_DEFAULT}; | |
151 | |
152 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut | 149 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut |
153 // URL which opens Chrome in fullscreen. | 150 // URL which opens Chrome in fullscreen. |
154 const base::Feature kImprovedA2HS{"ImprovedA2HS", | 151 const base::Feature kImprovedA2HS{"ImprovedA2HS", |
155 base::FEATURE_DISABLED_BY_DEFAULT}; | 152 base::FEATURE_DISABLED_BY_DEFAULT}; |
156 | 153 |
157 const base::Feature kNewPhotoPicker{"NewPhotoPicker", | 154 const base::Feature kNewPhotoPicker{"NewPhotoPicker", |
158 base::FEATURE_DISABLED_BY_DEFAULT}; | 155 base::FEATURE_DISABLED_BY_DEFAULT}; |
159 | 156 |
160 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", | 157 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", |
161 base::FEATURE_DISABLED_BY_DEFAULT}; | 158 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 270 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
274 jdefault_value); | 271 jdefault_value); |
275 } | 272 } |
276 | 273 |
277 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 274 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
278 return RegisterNativesImpl(env); | 275 return RegisterNativesImpl(env); |
279 } | 276 } |
280 | 277 |
281 } // namespace android | 278 } // namespace android |
282 } // namespace chrome | 279 } // namespace chrome |
OLD | NEW |