| 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 namespace features { | 7 namespace features { |
| 8 | 8 |
| 9 // All features in alphabetical order. | 9 // All features in alphabetical order. |
| 10 | 10 |
| 11 #if defined(OS_WIN) || defined(OS_MACOSX) | 11 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 12 // Enables automatic tab discarding, when the system is in low memory state. | 12 // Enables automatic tab discarding, when the system is in low memory state. |
| 13 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", | 13 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", |
| 14 base::FEATURE_DISABLED_BY_DEFAULT}; | 14 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 15 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 15 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 16 | 16 |
| 17 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) | 17 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 18 // Enables showing the "This computer will no longer receive Google Chrome | 18 // Enables showing the "This computer will no longer receive Google Chrome |
| 19 // updates" infobar instead of the "will soon stop receiving" infobar on | 19 // updates" infobar instead of the "will soon stop receiving" infobar on |
| 20 // deprecated systems. | 20 // deprecated systems. |
| 21 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ | 21 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ |
| 22 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; | 22 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 // Enables or disables the Material Design version of chrome://history. | 25 // Enables or disables the Material Design version of chrome://history. |
| 26 const base::Feature kMaterialDesignHistoryFeature { | 26 const base::Feature kMaterialDesignHistoryFeature { |
| 27 "MaterialDesignHistory", base::FEATURE_DISABLED_BY_DEFAULT | 27 "MaterialDesignHistory", base::FEATURE_DISABLED_BY_DEFAULT |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Enables or disables the experimental V8 Ignition interpreter. |
| 31 const base::Feature kV8Ignition { |
| 32 "V8Ignition", base::FEATURE_DISABLED_BY_DEFAULT |
| 33 }; |
| 34 |
| 30 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 31 // Runtime flag that indicates whether this leak detector should be enabled in | 36 // Runtime flag that indicates whether this leak detector should be enabled in |
| 32 // the current instance of Chrome. | 37 // the current instance of Chrome. |
| 33 const base::Feature kRuntimeMemoryLeakDetector{ | 38 const base::Feature kRuntimeMemoryLeakDetector{ |
| 34 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; | 39 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 35 #endif // defined(OS_CHROMEOS) | 40 #endif // defined(OS_CHROMEOS) |
| 36 | 41 |
| 37 // A new user experience for transitioning into fullscreen and mouse pointer | 42 // A new user experience for transitioning into fullscreen and mouse pointer |
| 38 // lock states. The name is a misnomer (for historical reasons); affects both | 43 // lock states. The name is a misnomer (for historical reasons); affects both |
| 39 // Views and Android builds. | 44 // Views and Android builds. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 50 | 55 |
| 51 #if defined(SYZYASAN) | 56 #if defined(SYZYASAN) |
| 52 // Enable the deferred free mechanism in the syzyasan module, which helps the | 57 // Enable the deferred free mechanism in the syzyasan module, which helps the |
| 53 // performance by deferring some work on the critical path to a background | 58 // performance by deferring some work on the critical path to a background |
| 54 // thread. | 59 // thread. |
| 55 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 60 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| 56 base::FEATURE_DISABLED_BY_DEFAULT}; | 61 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 57 #endif | 62 #endif |
| 58 | 63 |
| 59 } // namespace features | 64 } // namespace features |
| OLD | NEW |