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::kImportantSitesInCbd, |
42 &features::kServiceWorkerPaymentApps, | 43 &features::kServiceWorkerPaymentApps, |
43 &features::kSimplifiedFullscreenUI, | 44 &features::kSimplifiedFullscreenUI, |
44 &features::kVrShell, | 45 &features::kVrShell, |
45 &features::kWebPayments, | 46 &features::kWebPayments, |
46 &features::kTabsInCbd, | 47 &features::kTabsInCbd, |
47 &kAndroidPayIntegrationV1, | 48 &kAndroidPayIntegrationV1, |
48 &kAndroidPayIntegrationV2, | 49 &kAndroidPayIntegrationV2, |
49 &kAndroidPaymentApps, | 50 &kAndroidPaymentApps, |
50 &kCCTBackgroundTab, | 51 &kCCTBackgroundTab, |
51 &kCCTExternalLinkHandling, | 52 &kCCTExternalLinkHandling, |
52 &kCCTPostMessageAPI, | 53 &kCCTPostMessageAPI, |
53 &kChromeHomeFeature, | 54 &kChromeHomeFeature, |
54 &kChromeHomeExpandButton, | 55 &kChromeHomeExpandButton, |
55 &kContentSuggestionsSettings, | 56 &kContentSuggestionsSettings, |
56 &kContextualSearchSingleActions, | 57 &kContextualSearchSingleActions, |
57 &kContextualSearchUrlActions, | 58 &kContextualSearchUrlActions, |
58 &kCustomContextMenu, | 59 &kCustomContextMenu, |
59 &kCustomFeedbackUi, | 60 &kCustomFeedbackUi, |
60 &data_reduction_proxy::features::kDataReductionMainMenu, | 61 &data_reduction_proxy::features::kDataReductionMainMenu, |
61 &data_reduction_proxy::features::kDataReductionSiteBreakdown, | 62 &data_reduction_proxy::features::kDataReductionSiteBreakdown, |
62 &kFullscreenActivity, | 63 &kFullscreenActivity, |
63 &kImportantSitesInCBD, | |
64 &kImprovedA2HS, | 64 &kImprovedA2HS, |
65 &kNewPhotoPicker, | 65 &kNewPhotoPicker, |
66 &kNoCreditCardAbort, | 66 &kNoCreditCardAbort, |
67 &kNTPCondensedLayoutFeature, | 67 &kNTPCondensedLayoutFeature, |
68 &kNTPCondensedTileLayoutFeature, | 68 &kNTPCondensedTileLayoutFeature, |
69 &kNTPLaunchAfterInactivity, | 69 &kNTPLaunchAfterInactivity, |
70 &kNTPOfflinePagesFeature, | 70 &kNTPOfflinePagesFeature, |
71 &NTPShowGoogleGInOmniboxFeature, | 71 &NTPShowGoogleGInOmniboxFeature, |
72 &kPhysicalWebFeature, | 72 &kPhysicalWebFeature, |
73 &kPhysicalWebSharing, | 73 &kPhysicalWebSharing, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", | 144 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", |
145 base::FEATURE_DISABLED_BY_DEFAULT}; | 145 base::FEATURE_DISABLED_BY_DEFAULT}; |
146 | 146 |
147 const base::Feature kDownloadAutoResumptionThrottling{ | 147 const base::Feature kDownloadAutoResumptionThrottling{ |
148 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 148 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
149 | 149 |
150 const base::Feature kFullscreenActivity{"FullscreenActivity", | 150 const base::Feature kFullscreenActivity{"FullscreenActivity", |
151 base::FEATURE_DISABLED_BY_DEFAULT}; | 151 base::FEATURE_DISABLED_BY_DEFAULT}; |
152 | 152 |
153 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | |
154 base::FEATURE_DISABLED_BY_DEFAULT}; | |
155 | |
156 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut | 153 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut |
157 // URL which opens Chrome in fullscreen. | 154 // URL which opens Chrome in fullscreen. |
158 const base::Feature kImprovedA2HS{"ImprovedA2HS", | 155 const base::Feature kImprovedA2HS{"ImprovedA2HS", |
159 base::FEATURE_DISABLED_BY_DEFAULT}; | 156 base::FEATURE_DISABLED_BY_DEFAULT}; |
160 | 157 |
161 const base::Feature kSearchEnginePromoExistingDevice{ | 158 const base::Feature kSearchEnginePromoExistingDevice{ |
162 "SearchEnginePromo.ExistingDevice", base::FEATURE_DISABLED_BY_DEFAULT}; | 159 "SearchEnginePromo.ExistingDevice", base::FEATURE_DISABLED_BY_DEFAULT}; |
163 | 160 |
164 const base::Feature kSearchEnginePromoNewDevice{ | 161 const base::Feature kSearchEnginePromoNewDevice{ |
165 "SearchEnginePromo.NewDevice", base::FEATURE_DISABLED_BY_DEFAULT}; | 162 "SearchEnginePromo.NewDevice", base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 281 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
285 jdefault_value); | 282 jdefault_value); |
286 } | 283 } |
287 | 284 |
288 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 285 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
289 return RegisterNativesImpl(env); | 286 return RegisterNativesImpl(env); |
290 } | 287 } |
291 | 288 |
292 } // namespace android | 289 } // namespace android |
293 } // namespace chrome | 290 } // namespace chrome |
OLD | NEW |