| 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 #if defined(OS_ANDROID) | 16 #if defined(OS_ANDROID) |
| 17 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ | 17 const base::Feature kAllowAutoplayUnmutedInWebappManifestScope{ |
| 18 "AllowAutoplayUnmutedInWebappManifestScope", | 18 "AllowAutoplayUnmutedInWebappManifestScope", |
| 19 base::FEATURE_ENABLED_BY_DEFAULT}; | 19 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 20 #endif // defined(OS_ANDROID) | 20 #endif // defined(OS_ANDROID) |
| 21 | 21 |
| 22 #if defined(OS_MACOSX) | 22 #if defined(OS_MACOSX) |
| 23 // Enables Javascript execution via AppleScript. | 23 // Enables Javascript execution via AppleScript. |
| 24 const base::Feature kAppleScriptExecuteJavaScript{ | 24 const base::Feature kAppleScriptExecuteJavaScript{ |
| 25 "AppleScriptExecuteJavaScript", base::FEATURE_DISABLED_BY_DEFAULT}; | 25 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 26 | 26 |
| 27 // Use the Toolkit-Views Task Manager window. | 27 // Use the Toolkit-Views Task Manager window. |
| 28 const base::Feature kViewsTaskManager{"ViewsTaskManager", | 28 const base::Feature kViewsTaskManager{"ViewsTaskManager", |
| 29 base::FEATURE_DISABLED_BY_DEFAULT}; | 29 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 30 #endif // defined(OS_MACOSX) | 30 #endif // defined(OS_MACOSX) |
| 31 | 31 |
| 32 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
| 33 // Whether to handle low memory kill of ARC apps by Chrome. | 33 // Whether to handle low memory kill of ARC apps by Chrome. |
| 34 const base::Feature kArcMemoryManagement{ | 34 const base::Feature kArcMemoryManagement{ |
| 35 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; | 35 "ArcMemoryManagement", base::FEATURE_ENABLED_BY_DEFAULT}; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 return base::FeatureList::IsEnabled(features::kPrefService) || | 326 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 327 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 327 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 328 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 328 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 329 switches::kMusConfig) == switches::kMash; | 329 switches::kMusConfig) == switches::kMash; |
| 330 #else | 330 #else |
| 331 false; | 331 false; |
| 332 #endif | 332 #endif |
| 333 } | 333 } |
| 334 | 334 |
| 335 } // namespace features | 335 } // namespace features |
| OLD | NEW |