| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 &kAndroidPayIntegrationV1, | 45 &kAndroidPayIntegrationV1, |
| 46 &kAndroidPayIntegrationV2, | 46 &kAndroidPayIntegrationV2, |
| 47 &kAndroidPaymentApps, | 47 &kAndroidPaymentApps, |
| 48 &kAndroidPaymentAppsFilter, | 48 &kAndroidPaymentAppsFilter, |
| 49 &kCCTExternalLinkHandling, | 49 &kCCTExternalLinkHandling, |
| 50 &kCCTPostMessageAPI, | 50 &kCCTPostMessageAPI, |
| 51 &kChromeHomeFeature, | 51 &kChromeHomeFeature, |
| 52 &kContextualSearchSingleActions, | 52 &kContextualSearchSingleActions, |
| 53 &kContextualSearchUrlActions, | 53 &kContextualSearchUrlActions, |
| 54 &kCustomFeedbackUi, | 54 &kCustomFeedbackUi, |
| 55 &kEnableNewPhotoPicker, |
| 55 &kImportantSitesInCBD, | 56 &kImportantSitesInCBD, |
| 56 &kImprovedA2HS, | 57 &kImprovedA2HS, |
| 57 &kNoCreditCardAbort, | 58 &kNoCreditCardAbort, |
| 58 &kNTPCondensedLayoutFeature, | 59 &kNTPCondensedLayoutFeature, |
| 59 &kNTPCondensedTileLayoutFeature, | 60 &kNTPCondensedTileLayoutFeature, |
| 60 &kNTPFakeOmniboxTextFeature, | 61 &kNTPFakeOmniboxTextFeature, |
| 61 &kNTPLaunchAfterInactivity, | 62 &kNTPLaunchAfterInactivity, |
| 62 &kNTPOfflinePagesFeature, | 63 &kNTPOfflinePagesFeature, |
| 63 &NTPShowGoogleGInOmniboxFeature, | 64 &NTPShowGoogleGInOmniboxFeature, |
| 64 &kPhysicalWebFeature, | 65 &kPhysicalWebFeature, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 const base::Feature kCCTPostMessageAPI{"CCTPostMessageAPI", | 112 const base::Feature kCCTPostMessageAPI{"CCTPostMessageAPI", |
| 112 base::FEATURE_ENABLED_BY_DEFAULT}; | 113 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 113 | 114 |
| 114 const base::Feature kChromeHomeFeature{"ChromeHome", | 115 const base::Feature kChromeHomeFeature{"ChromeHome", |
| 115 base::FEATURE_DISABLED_BY_DEFAULT}; | 116 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 116 | 117 |
| 117 const base::Feature kContextualSearchSingleActions{ | 118 const base::Feature kContextualSearchSingleActions{ |
| 118 "ContextualSearchSingleActions", base::FEATURE_ENABLED_BY_DEFAULT}; | 119 "ContextualSearchSingleActions", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 119 | 120 |
| 121 const base::Feature kContextualSearchUrlActions{ |
| 122 "ContextualSearchUrlActions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 123 |
| 120 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", | 124 const base::Feature kCustomFeedbackUi{"CustomFeedbackUi", |
| 121 base::FEATURE_DISABLED_BY_DEFAULT}; | 125 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 122 | 126 |
| 123 const base::Feature kDownloadAutoResumptionThrottling{ | 127 const base::Feature kDownloadAutoResumptionThrottling{ |
| 124 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 128 "DownloadAutoResumptionThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 125 | 129 |
| 126 const base::Feature kContextualSearchUrlActions{ | |
| 127 "ContextualSearchUrlActions", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 128 | |
| 129 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | 130 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", |
| 130 base::FEATURE_DISABLED_BY_DEFAULT}; | 131 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 131 | 132 |
| 132 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut | 133 // Makes "Add to Home screen" in the app menu generate an APK for the shortcut |
| 133 // URL which opens Chrome in fullscreen. | 134 // URL which opens Chrome in fullscreen. |
| 134 const base::Feature kImprovedA2HS{"ImprovedA2HS", | 135 const base::Feature kImprovedA2HS{"ImprovedA2HS", |
| 135 base::FEATURE_DISABLED_BY_DEFAULT}; | 136 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 136 | 137 |
| 138 const base::Feature kEnableNewPhotoPicker{"NewPhotoPicker", |
| 139 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 140 |
| 137 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", | 141 const base::Feature kNoCreditCardAbort{"NoCreditCardAbort", |
| 138 base::FEATURE_DISABLED_BY_DEFAULT}; | 142 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 139 | 143 |
| 140 const base::Feature kNTPCondensedLayoutFeature{ | 144 const base::Feature kNTPCondensedLayoutFeature{ |
| 141 "NTPCondensedLayout", base::FEATURE_DISABLED_BY_DEFAULT}; | 145 "NTPCondensedLayout", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 142 | 146 |
| 143 const base::Feature kNTPCondensedTileLayoutFeature{ | 147 const base::Feature kNTPCondensedTileLayoutFeature{ |
| 144 "NTPCondensedTileLayout", base::FEATURE_DISABLED_BY_DEFAULT}; | 148 "NTPCondensedTileLayout", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 145 | 149 |
| 146 const base::Feature kNTPFakeOmniboxTextFeature{ | 150 const base::Feature kNTPFakeOmniboxTextFeature{ |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 247 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 244 jdefault_value); | 248 jdefault_value); |
| 245 } | 249 } |
| 246 | 250 |
| 247 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 251 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 248 return RegisterNativesImpl(env); | 252 return RegisterNativesImpl(env); |
| 249 } | 253 } |
| 250 | 254 |
| 251 } // namespace android | 255 } // namespace android |
| 252 } // namespace chrome | 256 } // namespace chrome |
| OLD | NEW |