Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: Move SFL calls to constructor Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 const base::Feature kPermissionsBlacklist{ 306 const base::Feature kPermissionsBlacklist{
304 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; 307 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT};
305 308
306 // Disables PostScript generation when printing to PostScript capable printers 309 // Disables PostScript generation when printing to PostScript capable printers
307 // and instead sends Emf files. 310 // and instead sends Emf files.
308 #if defined(OS_WIN) 311 #if defined(OS_WIN)
309 const base::Feature kDisablePostScriptPrinting{ 312 const base::Feature kDisablePostScriptPrinting{
310 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; 313 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT};
311 #endif 314 #endif
312 315
316 // Triggers the preconnector on renderer-initiated navigations. This captures
317 // more navigations.
318 const base::Feature kPreconnectMore{"PreconnectMore",
319 base::FEATURE_DISABLED_BY_DEFAULT};
320
313 #if BUILDFLAG(ENABLE_PLUGINS) 321 #if BUILDFLAG(ENABLE_PLUGINS)
314 // Prefer HTML content by hiding Flash from the list of plugins. 322 // Prefer HTML content by hiding Flash from the list of plugins.
315 // https://crbug.com/626728 323 // https://crbug.com/626728
316 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", 324 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins",
317 base::FEATURE_DISABLED_BY_DEFAULT}; 325 base::FEATURE_DISABLED_BY_DEFAULT};
318 #endif 326 #endif
319 327
320 #if defined(OS_CHROMEOS) 328 #if defined(OS_CHROMEOS)
321 // The lock screen will be preloaded so it is instantly available when the user 329 // The lock screen will be preloaded so it is instantly available when the user
322 // locks the Chromebook device. 330 // locks the Chromebook device.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // Enables or disables Chrome OS Component updates on Chrome OS. 438 // Enables or disables Chrome OS Component updates on Chrome OS.
431 const base::Feature kCrOSComponent{"CrOSComponent", 439 const base::Feature kCrOSComponent{"CrOSComponent",
432 base::FEATURE_DISABLED_BY_DEFAULT}; 440 base::FEATURE_DISABLED_BY_DEFAULT};
433 441
434 // Enables or disables Instant Tethering on Chrome OS. 442 // Enables or disables Instant Tethering on Chrome OS.
435 const base::Feature kInstantTethering{"InstantTethering", 443 const base::Feature kInstantTethering{"InstantTethering",
436 base::FEATURE_DISABLED_BY_DEFAULT}; 444 base::FEATURE_DISABLED_BY_DEFAULT};
437 #endif // defined(OS_CHROMEOS) 445 #endif // defined(OS_CHROMEOS)
438 446
439 } // namespace features 447 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | content/browser/media/session/media_session_impl_visibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698