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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1122863005: Create base::win::MemoryPressureMonitor class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 17c6ebedb1ff5c38473b8ce8f60fdef1305d5d12..9354a8e60dea691e2b1dcaea28f8d547b300a4a0 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -101,6 +101,7 @@
#include <commctrl.h>
#include <shellapi.h>
+#include "base/win/memory_pressure_monitor_win.h"
#include "content/browser/system_message_window_win.h"
#include "content/common/sandbox_win.h"
#include "net/base/winsock_init.h"
@@ -613,6 +614,8 @@ int BrowserMainLoop::PreCreateThreads() {
}
#elif defined(OS_MACOSX) && !defined(OS_IOS)
memory_pressure_monitor_.reset(new base::MemoryPressureMonitorMac());
+#elif defined(OS_WIN)
+ memory_pressure_monitor_.reset(new base::MemoryPressureMonitorWin());
#endif
#if defined(ENABLE_PLUGINS)

Powered by Google App Engine
This is Rietveld 408576698