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

Unified Diff: components/memory_pressure/memory_pressure_listener.h

Issue 1603413003: Add memory pressure monitor for Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: components/memory_pressure/memory_pressure_listener.h
diff --git a/components/memory_pressure/memory_pressure_listener.h b/components/memory_pressure/memory_pressure_listener.h
index 81ae748075db279e023a7c397615acab50d70989..d0efd3b7b8f98043adeb95cefe29f55cf848b521 100644
--- a/components/memory_pressure/memory_pressure_listener.h
+++ b/components/memory_pressure/memory_pressure_listener.h
@@ -15,9 +15,8 @@
#include "base/macros.h"
#include "build/build_config.h"
-// ChromeOS and Linux operating systems will be added to this as they are
-// implemented.
-#if defined(OS_WIN)
+// Other operating systems will be added to this as they are implemented.
+#if defined(OS_WIN) || defined(OS_LINUX)
#define MEMORY_PRESSURE_IS_POLLING
#endif

Powered by Google App Engine
This is Rietveld 408576698