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

Unified Diff: chrome/common/chrome_features.cc

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_features.cc
diff --git a/chrome/common/chrome_features.cc b/chrome/common/chrome_features.cc
index 9d60a3e90b549646548e5bf229644caff096cdbb..e9e847da513af8c33039dc8a6c22898c7c566fdb 100644
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -5,6 +5,7 @@
#include "chrome/common/chrome_features.h"
#include "extensions/features/features.h"
+#include "ppapi/features/features.h"
namespace features {
@@ -159,7 +160,7 @@ const base::Feature kOfflinePageDownloadSuggestionsFeature{
const base::Feature kOverrideYouTubeFlashEmbed{
"OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT};
-#if defined(ENABLE_PLUGINS)
+#if BUILDFLAG(ENABLE_PLUGINS)
// Prefer HTML content by hiding Flash from the list of plugins.
// https://crbug.com/626728
const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins",
@@ -184,7 +185,7 @@ const base::Feature kRuntimeMemoryLeakDetector{
"RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT};
#endif // defined(OS_CHROMEOS)
-#if defined(ENABLE_PLUGINS)
+#if BUILDFLAG(ENABLE_PLUGINS)
// Disables Plugin Power Saver when Flash is in ALLOW mode.
const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode",
base::FEATURE_DISABLED_BY_DEFAULT};
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698