| 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 26 matching lines...) Expand all Loading... |
| 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::kNativeAndroidHistoryManager, | 42 &features::kNativeAndroidHistoryManager, |
| 43 &features::kServiceWorkerPaymentApps, | 43 &features::kServiceWorkerPaymentApps, |
| 44 &features::kSimplifiedFullscreenUI, | 44 &features::kSimplifiedFullscreenUI, |
| 45 &features::kVrShell, | 45 &features::kVrShell, |
| 46 &features::kWebPayments, | 46 &features::kWebPayments, |
| 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, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 &kNTPCondensedTileLayoutFeature, | 69 &kNTPCondensedTileLayoutFeature, |
| 69 &kNTPLaunchAfterInactivity, | 70 &kNTPLaunchAfterInactivity, |
| 70 &kNTPOfflinePagesFeature, | 71 &kNTPOfflinePagesFeature, |
| 71 &NTPShowGoogleGInOmniboxFeature, | 72 &NTPShowGoogleGInOmniboxFeature, |
| 72 &kPhysicalWebFeature, | 73 &kPhysicalWebFeature, |
| 73 &kPhysicalWebSharing, | 74 &kPhysicalWebSharing, |
| 74 &kSearchEnginePromoExistingDevice, | 75 &kSearchEnginePromoExistingDevice, |
| 75 &kSearchEnginePromoNewDevice, | 76 &kSearchEnginePromoNewDevice, |
| 76 &kSpecialLocaleFeature, | 77 &kSpecialLocaleFeature, |
| 77 &kSpecialLocaleWrapper, | 78 &kSpecialLocaleWrapper, |
| 78 &kTabsInCBD, | |
| 79 &kTabReparenting, | 79 &kTabReparenting, |
| 80 &kVideoPersistence, | 80 &kVideoPersistence, |
| 81 &kWebPaymentsModifiers, | 81 &kWebPaymentsModifiers, |
| 82 &kWebPaymentsSingleAppUiSkip, | 82 &kWebPaymentsSingleAppUiSkip, |
| 83 &kWebVRCardboardSupport, | 83 &kWebVRCardboardSupport, |
| 84 &ntp_snippets::kIncreasedVisibility, | 84 &ntp_snippets::kIncreasedVisibility, |
| 85 &ntp_snippets::kForeignSessionsSuggestionsFeature, | 85 &ntp_snippets::kForeignSessionsSuggestionsFeature, |
| 86 &ntp_snippets::kNotificationsFeature, | 86 &ntp_snippets::kNotificationsFeature, |
| 87 &ntp_snippets::kPublisherFaviconsFromNewServerFeature, | 87 &ntp_snippets::kPublisherFaviconsFromNewServerFeature, |
| 88 &offline_pages::kBackgroundLoaderForDownloadsFeature, | 88 &offline_pages::kBackgroundLoaderForDownloadsFeature, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 const base::Feature kPhysicalWebSharing{"PhysicalWebSharing", | 191 const base::Feature kPhysicalWebSharing{"PhysicalWebSharing", |
| 192 base::FEATURE_DISABLED_BY_DEFAULT}; | 192 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 193 | 193 |
| 194 const base::Feature kSpecialLocaleFeature{"SpecialLocale", | 194 const base::Feature kSpecialLocaleFeature{"SpecialLocale", |
| 195 base::FEATURE_DISABLED_BY_DEFAULT}; | 195 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 196 | 196 |
| 197 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper", | 197 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper", |
| 198 base::FEATURE_ENABLED_BY_DEFAULT}; | 198 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 199 | 199 |
| 200 const base::Feature kTabsInCBD{"TabsInCBD", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 201 | |
| 202 const base::Feature kTabReparenting{"TabReparenting", | 200 const base::Feature kTabReparenting{"TabReparenting", |
| 203 base::FEATURE_ENABLED_BY_DEFAULT}; | 201 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 204 | 202 |
| 205 const base::Feature kUseNewDoodleApi{"UseNewDoodleApi", | 203 const base::Feature kUseNewDoodleApi{"UseNewDoodleApi", |
| 206 base::FEATURE_DISABLED_BY_DEFAULT}; | 204 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 207 | 205 |
| 208 const base::Feature kUserMediaScreenCapturing{ | 206 const base::Feature kUserMediaScreenCapturing{ |
| 209 "UserMediaScreenCapturing", base::FEATURE_DISABLED_BY_DEFAULT}; | 207 "UserMediaScreenCapturing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 210 | 208 |
| 211 const base::Feature kVideoPersistence{"VideoPersistence", | 209 const base::Feature kVideoPersistence{"VideoPersistence", |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 281 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 284 jdefault_value); | 282 jdefault_value); |
| 285 } | 283 } |
| 286 | 284 |
| 287 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 285 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 288 return RegisterNativesImpl(env); | 286 return RegisterNativesImpl(env); |
| 289 } | 287 } |
| 290 | 288 |
| 291 } // namespace android | 289 } // namespace android |
| 292 } // namespace chrome | 290 } // namespace chrome |
| OLD | NEW |