OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/chrome_features.h" | 5 #include "chrome/common/chrome_features.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "extensions/features/features.h" | 9 #include "extensions/features/features.h" |
10 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
11 | 11 |
12 namespace features { | 12 namespace features { |
13 | 13 |
14 // All features in alphabetical order. | 14 // All features in alphabetical order. |
15 | 15 |
| 16 // Enbales Ads Metrics. |
| 17 const base::Feature kAdsFeature{"AdsMetrics", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 18 |
16 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
17 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ | 20 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ |
18 "AllowAutoplayUnmutedInWebappManifestScope", | 21 "AllowAutoplayUnmutedInWebappManifestScope", |
19 base::FEATURE_ENABLED_BY_DEFAULT}; | 22 base::FEATURE_ENABLED_BY_DEFAULT}; |
20 #endif // defined(OS_ANDROID) | 23 #endif // defined(OS_ANDROID) |
21 | 24 |
22 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
23 // Enables Javascript execution via AppleScript. | 26 // Enables Javascript execution via AppleScript. |
24 const base::Feature kAppleScriptExecuteJavaScript{ | 27 const base::Feature kAppleScriptExecuteJavaScript{ |
25 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; | 28 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 const base::Feature kPermissionsBlacklist{ | 282 const base::Feature kPermissionsBlacklist{ |
280 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; | 283 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; |
281 | 284 |
282 // Disables PostScript generation when printing to PostScript capable printers | 285 // Disables PostScript generation when printing to PostScript capable printers |
283 // and instead sends Emf files. | 286 // and instead sends Emf files. |
284 #if defined(OS_WIN) | 287 #if defined(OS_WIN) |
285 const base::Feature kDisablePostScriptPrinting{ | 288 const base::Feature kDisablePostScriptPrinting{ |
286 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; | 289 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; |
287 #endif | 290 #endif |
288 | 291 |
| 292 // Triggers the preconnector on renderer-initiated navigations. This captures |
| 293 // more navigations. |
| 294 const base::Feature kPreconnectMore{"PreconnectMore", |
| 295 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 296 |
289 #if BUILDFLAG(ENABLE_PLUGINS) | 297 #if BUILDFLAG(ENABLE_PLUGINS) |
290 // Prefer HTML content by hiding Flash from the list of plugins. | 298 // Prefer HTML content by hiding Flash from the list of plugins. |
291 // https://crbug.com/626728 | 299 // https://crbug.com/626728 |
292 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", | 300 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", |
293 base::FEATURE_DISABLED_BY_DEFAULT}; | 301 base::FEATURE_DISABLED_BY_DEFAULT}; |
294 #endif | 302 #endif |
295 | 303 |
296 // Enables the pref service. See https://crbug.com/654988. | 304 // Enables the pref service. See https://crbug.com/654988. |
297 const base::Feature kPrefService{"PrefService", | 305 const base::Feature kPrefService{"PrefService", |
298 base::FEATURE_DISABLED_BY_DEFAULT}; | 306 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 return base::FeatureList::IsEnabled(features::kPrefService) || | 421 return base::FeatureList::IsEnabled(features::kPrefService) || |
414 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 422 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
415 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 423 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
416 switches::kMusConfig) == switches::kMash; | 424 switches::kMusConfig) == switches::kMash; |
417 #else | 425 #else |
418 false; | 426 false; |
419 #endif | 427 #endif |
420 } | 428 } |
421 | 429 |
422 } // namespace features | 430 } // namespace features |
OLD | NEW |