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

Unified Diff: content/public/common/content_features.cc

Issue 2692313003: Enable Purge+throttle by default except Android and MacOS. (Closed)
Patch Set: Added comment. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_features.cc
diff --git a/content/public/common/content_features.cc b/content/public/common/content_features.cc
index cc61746a5b7c13aa475ed4322af5a521968cbdd9..aa922aa58b977ecde4c552579bb526eb7f48fb55 100644
--- a/content/public/common/content_features.cc
+++ b/content/public/common/content_features.cc
@@ -150,9 +150,19 @@ const base::Feature kPassiveEventListenersDueToFling{
const base::Feature kPointerEvents{"PointerEvent",
base::FEATURE_ENABLED_BY_DEFAULT};
-// Enables purge and suspend.
-const base::Feature kPurgeAndSuspend{"PurgeAndSuspend",
- base::FEATURE_DISABLED_BY_DEFAULT};
+// Enables Purge+Throttle on platforms except Android and MacOS.
+// (Android) Purge+Throttle depends on TabManager, but TabManager doesn't
+// support Android. Enable after Android is supported.
+// (MacOS X) Enable after Purge+Throttle handles memory pressure signals
+// send by OS correctly.
+const base::Feature kPurgeAndSuspend {
+ "PurgeAndSuspend",
+#if defined(OS_MACOSX) || defined(OS_ANDROID)
+ base::FEATURE_DISABLED_BY_DEFAULT
+#else
+ base::FEATURE_ENABLED_BY_DEFAULT
+#endif
+};
// RAF aligned mouse input events support.
const base::Feature kRafAlignedMouseInputEvents{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698