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 "extensions/features/features.h" | 7 #include "extensions/features/features.h" |
| 8 #include "ppapi/features/features.h" |
8 | 9 |
9 namespace features { | 10 namespace features { |
10 | 11 |
11 // All features in alphabetical order. | 12 // All features in alphabetical order. |
12 | 13 |
13 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
14 // Enables Javascript execution via AppleScript. | 15 // Enables Javascript execution via AppleScript. |
15 const base::Feature kAppleScriptExecuteJavaScript{ | 16 const base::Feature kAppleScriptExecuteJavaScript{ |
16 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; | 17 "AppleScriptExecuteJavaScript", base::FEATURE_ENABLED_BY_DEFAULT}; |
17 #endif // defined(OS_MACOSX) | 18 #endif // defined(OS_MACOSX) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 // If enabled, the list of content suggestions on the New Tab page will contain | 154 // If enabled, the list of content suggestions on the New Tab page will contain |
154 // pages that the user downloaded for later use. | 155 // pages that the user downloaded for later use. |
155 const base::Feature kOfflinePageDownloadSuggestionsFeature{ | 156 const base::Feature kOfflinePageDownloadSuggestionsFeature{ |
156 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; | 157 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; |
157 | 158 |
158 // Enables YouTube Flash videos to be overridden. | 159 // Enables YouTube Flash videos to be overridden. |
159 const base::Feature kOverrideYouTubeFlashEmbed{ | 160 const base::Feature kOverrideYouTubeFlashEmbed{ |
160 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT}; | 161 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT}; |
161 | 162 |
162 #if defined(ENABLE_PLUGINS) | 163 #if BUILDFLAG(ENABLE_PLUGINS) |
163 // Prefer HTML content by hiding Flash from the list of plugins. | 164 // Prefer HTML content by hiding Flash from the list of plugins. |
164 // https://crbug.com/626728 | 165 // https://crbug.com/626728 |
165 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", | 166 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", |
166 base::FEATURE_DISABLED_BY_DEFAULT}; | 167 base::FEATURE_DISABLED_BY_DEFAULT}; |
167 #endif | 168 #endif |
168 | 169 |
169 // Enables the Print Scaling feature in print preview. | 170 // Enables the Print Scaling feature in print preview. |
170 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 171 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
171 const base::Feature kPrintScaling{"PrintScaling", | 172 const base::Feature kPrintScaling{"PrintScaling", |
172 base::FEATURE_DISABLED_BY_DEFAULT}; | 173 base::FEATURE_DISABLED_BY_DEFAULT}; |
173 #endif | 174 #endif |
174 | 175 |
175 // Enables or disables push subscriptions keeping Chrome running in the | 176 // Enables or disables push subscriptions keeping Chrome running in the |
176 // background when closed. | 177 // background when closed. |
177 const base::Feature kPushMessagingBackgroundMode{ | 178 const base::Feature kPushMessagingBackgroundMode{ |
178 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; | 179 "PushMessagingBackgroundMode", base::FEATURE_DISABLED_BY_DEFAULT}; |
179 | 180 |
180 #if defined(OS_CHROMEOS) | 181 #if defined(OS_CHROMEOS) |
181 // Runtime flag that indicates whether this leak detector should be enabled in | 182 // Runtime flag that indicates whether this leak detector should be enabled in |
182 // the current instance of Chrome. | 183 // the current instance of Chrome. |
183 const base::Feature kRuntimeMemoryLeakDetector{ | 184 const base::Feature kRuntimeMemoryLeakDetector{ |
184 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; | 185 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; |
185 #endif // defined(OS_CHROMEOS) | 186 #endif // defined(OS_CHROMEOS) |
186 | 187 |
187 #if defined(ENABLE_PLUGINS) | 188 #if BUILDFLAG(ENABLE_PLUGINS) |
188 // Disables Plugin Power Saver when Flash is in ALLOW mode. | 189 // Disables Plugin Power Saver when Flash is in ALLOW mode. |
189 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", | 190 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", |
190 base::FEATURE_DISABLED_BY_DEFAULT}; | 191 base::FEATURE_DISABLED_BY_DEFAULT}; |
191 #endif | 192 #endif |
192 | 193 |
193 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", | 194 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", |
194 base::FEATURE_DISABLED_BY_DEFAULT}; | 195 base::FEATURE_DISABLED_BY_DEFAULT}; |
195 | 196 |
196 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 197 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
197 // Sets the visibility and animation of the security chip. | 198 // Sets the visibility and animation of the security chip. |
(...skipping 27 matching lines...) Expand all Loading... |
225 // Enables or disables PIN quick unlock settings integration. | 226 // Enables or disables PIN quick unlock settings integration. |
226 const base::Feature kQuickUnlockPin{"QuickUnlockPin", | 227 const base::Feature kQuickUnlockPin{"QuickUnlockPin", |
227 base::FEATURE_DISABLED_BY_DEFAULT}; | 228 base::FEATURE_DISABLED_BY_DEFAULT}; |
228 | 229 |
229 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. | 230 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. |
230 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", | 231 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", |
231 base::FEATURE_DISABLED_BY_DEFAULT}; | 232 base::FEATURE_DISABLED_BY_DEFAULT}; |
232 #endif // defined(OS_CHROMEOS) | 233 #endif // defined(OS_CHROMEOS) |
233 | 234 |
234 } // namespace features | 235 } // namespace features |
OLD | NEW |