| 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 &kContentSuggestionsShowSummary, | 57 &kContentSuggestionsShowSummary, |
| 57 &kContextualSearchSingleActions, | 58 &kContextualSearchSingleActions, |
| 58 &kContextualSearchUrlActions, | 59 &kContextualSearchUrlActions, |
| 59 &kContextualSuggestionsCarousel, | 60 &kContextualSuggestionsCarousel, |
| 60 &kCustomContextMenu, | 61 &kCustomContextMenu, |
| 61 &kCustomFeedbackUi, | 62 &kCustomFeedbackUi, |
| 62 &kDownloadHomeShowStorageInfo, | 63 &kDownloadHomeShowStorageInfo, |
| 63 &data_reduction_proxy::features::kDataReductionMainMenu, | 64 &data_reduction_proxy::features::kDataReductionMainMenu, |
| 64 &data_reduction_proxy::features::kDataReductionSiteBreakdown, | 65 &data_reduction_proxy::features::kDataReductionSiteBreakdown, |
| 65 &kFullscreenActivity, | 66 &kFullscreenActivity, |
| 66 &kImportantSitesInCBD, | |
| 67 &kImprovedA2HS, | 67 &kImprovedA2HS, |
| 68 &kNewPhotoPicker, | 68 &kNewPhotoPicker, |
| 69 &kNoCreditCardAbort, | 69 &kNoCreditCardAbort, |
| 70 &kNTPCondensedLayoutFeature, | 70 &kNTPCondensedLayoutFeature, |
| 71 &kNTPCondensedTileLayoutFeature, | 71 &kNTPCondensedTileLayoutFeature, |
| 72 &kNTPLaunchAfterInactivity, | 72 &kNTPLaunchAfterInactivity, |
| 73 &kNTPOfflinePagesFeature, | 73 &kNTPOfflinePagesFeature, |
| 74 &NTPShowGoogleGInOmniboxFeature, | 74 &NTPShowGoogleGInOmniboxFeature, |
| 75 &kPhysicalWebFeature, | 75 &kPhysicalWebFeature, |
| 76 &kPhysicalWebSharing, | 76 &kPhysicalWebSharing, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 const base::Feature kDownloadAutoResumptionThrottling{ | 156 const base::Feature kDownloadAutoResumptionThrottling{ |
| 157 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 157 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 158 | 158 |
| 159 const base::Feature kDownloadHomeShowStorageInfo{ | 159 const base::Feature kDownloadHomeShowStorageInfo{ |
| 160 "DownloadHomeShowStorageInfo", base::FEATURE_DISABLED_BY_DEFAULT}; | 160 "DownloadHomeShowStorageInfo", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 161 | 161 |
| 162 const base::Feature kFullscreenActivity{"FullscreenActivity", | 162 const base::Feature kFullscreenActivity{"FullscreenActivity", |
| 163 base::FEATURE_DISABLED_BY_DEFAULT}; | 163 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 164 | 164 |
| 165 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | |
| 166 base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 167 | |
| 168 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut | 165 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut |
| 169 // URL which opens Chrome in fullscreen. | 166 // URL which opens Chrome in fullscreen. |
| 170 const base::Feature kImprovedA2HS{"ImprovedA2HS", | 167 const base::Feature kImprovedA2HS{"ImprovedA2HS", |
| 171 base::FEATURE_DISABLED_BY_DEFAULT}; | 168 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 172 | 169 |
| 173 const base::Feature kSearchEnginePromoExistingDevice{ | 170 const base::Feature kSearchEnginePromoExistingDevice{ |
| 174 "SearchEnginePromo.ExistingDevice", base::FEATURE_DISABLED_BY_DEFAULT}; | 171 "SearchEnginePromo.ExistingDevice", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 175 | 172 |
| 176 const base::Feature kSearchEnginePromoNewDevice{ | 173 const base::Feature kSearchEnginePromoNewDevice{ |
| 177 "SearchEnginePromo.NewDevice", base::FEATURE_DISABLED_BY_DEFAULT}; | 174 "SearchEnginePromo.NewDevice", base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 293 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 297 jdefault_value); | 294 jdefault_value); |
| 298 } | 295 } |
| 299 | 296 |
| 300 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 297 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 301 return RegisterNativesImpl(env); | 298 return RegisterNativesImpl(env); |
| 302 } | 299 } |
| 303 | 300 |
| 304 } // namespace android | 301 } // namespace android |
| 305 } // namespace chrome | 302 } // namespace chrome |
| OLD | NEW |