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

Unified Diff: components/memory_pressure/direct_memory_pressure_calculator.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/direct_memory_pressure_calculator.h
diff --git a/components/memory_pressure/direct_memory_pressure_calculator.h b/components/memory_pressure/direct_memory_pressure_calculator.h
index 44258a84dfc02e8d1f2e348021c81bf079383eed..98ca61770ea4795888e22f9d85c0ac9a962e0c13 100644
--- a/components/memory_pressure/direct_memory_pressure_calculator.h
+++ b/components/memory_pressure/direct_memory_pressure_calculator.h
@@ -5,8 +5,10 @@
#ifndef COMPONENTS_MEMORY_PRESSURE_DIRECT_MEMORY_PRESSURE_CALCULATOR_H_
#define COMPONENTS_MEMORY_PRESSURE_DIRECT_MEMORY_PRESSURE_CALCULATOR_H_
-#ifdef OS_WIN
+#if defined(OS_LINUX)
+#include "components/memory_pressure/direct_memory_pressure_calculator_linux.h"
+#elsif defined(OS_WIN)
#include "components/memory_pressure/direct_memory_pressure_calculator_win.h"
-#endif // OS_WIN
+#endif // OS_LINUX
#endif // COMPONENTS_MEMORY_PRESSURE_DIRECT_MEMORY_PRESSURE_CALCULATOR_H_

Powered by Google App Engine
This is Rietveld 408576698