| 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 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // Enables or disables the Material Design version of chrome://history. | 102 // Enables or disables the Material Design version of chrome://history. |
| 103 const base::Feature kMaterialDesignHistory{ | 103 const base::Feature kMaterialDesignHistory{ |
| 104 "MaterialDesignHistory", base::FEATURE_ENABLED_BY_DEFAULT}; | 104 "MaterialDesignHistory", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 105 | 105 |
| 106 // Enables or disables the Material Design version of chrome://settings. | 106 // Enables or disables the Material Design version of chrome://settings. |
| 107 // Also affects chrome://help. | 107 // Also affects chrome://help. |
| 108 const base::Feature kMaterialDesignSettings{ | 108 const base::Feature kMaterialDesignSettings{ |
| 109 "MaterialDesignSettings", base::FEATURE_DISABLED_BY_DEFAULT}; | 109 "MaterialDesignSettings", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 110 | 110 |
| 111 #if defined(ENABLE_PLUGINS) |
| 111 // Prefer HTML content by hiding Flash from the list of plugins. | 112 // Prefer HTML content by hiding Flash from the list of plugins. |
| 112 // https://crbug.com/626728 | 113 // https://crbug.com/626728 |
| 113 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", | 114 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", |
| 114 base::FEATURE_DISABLED_BY_DEFAULT}; | 115 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 116 #endif |
| 115 | 117 |
| 116 #if defined(OS_CHROMEOS) | 118 #if defined(OS_CHROMEOS) |
| 117 // Runtime flag that indicates whether this leak detector should be enabled in | 119 // Runtime flag that indicates whether this leak detector should be enabled in |
| 118 // the current instance of Chrome. | 120 // the current instance of Chrome. |
| 119 const base::Feature kRuntimeMemoryLeakDetector{ | 121 const base::Feature kRuntimeMemoryLeakDetector{ |
| 120 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; | 122 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 121 #endif // defined(OS_CHROMEOS) | 123 #endif // defined(OS_CHROMEOS) |
| 122 | 124 |
| 125 #if defined(ENABLE_PLUGINS) |
| 126 // Disables Plugin Power Saver when Flash is in ALLOW mode. |
| 127 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", |
| 128 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 129 #endif |
| 130 |
| 123 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", | 131 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", |
| 124 base::FEATURE_DISABLED_BY_DEFAULT}; | 132 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 125 | 133 |
| 126 // A new user experience for transitioning into fullscreen and mouse pointer | 134 // A new user experience for transitioning into fullscreen and mouse pointer |
| 127 // lock states. | 135 // lock states. |
| 128 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", | 136 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", |
| 129 base::FEATURE_ENABLED_BY_DEFAULT}; | 137 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 130 | 138 |
| 131 #if defined(SYZYASAN) | 139 #if defined(SYZYASAN) |
| 132 // Enable the deferred free mechanism in the syzyasan module, which helps the | 140 // Enable the deferred free mechanism in the syzyasan module, which helps the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 144 // Enables or disables PIN quick unlock settings integration. | 152 // Enables or disables PIN quick unlock settings integration. |
| 145 const base::Feature kQuickUnlockPin{"QuickUnlockPin", | 153 const base::Feature kQuickUnlockPin{"QuickUnlockPin", |
| 146 base::FEATURE_DISABLED_BY_DEFAULT}; | 154 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 147 | 155 |
| 148 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. | 156 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. |
| 149 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", | 157 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", |
| 150 base::FEATURE_DISABLED_BY_DEFAULT}; | 158 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 151 #endif // defined(OS_CHROMEOS) | 159 #endif // defined(OS_CHROMEOS) |
| 152 | 160 |
| 153 } // namespace features | 161 } // namespace features |
| OLD | NEW |