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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 2527973003: Consolidate code monitoring low memory kills and OOM kills to MemoryKillsMonitor on ChromeOS. (Closed)
Patch Set: move unittest to chromeos only build rule Created 4 years 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: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index 8b9664c96a5188133531c695dc3ff250be5dc25f..116b959ed8edce91742513daf6b6631c3cc897a0 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -354,6 +354,10 @@ void ChromeBrowserMainPartsChromeos::PreEarlyInitialization() {
chrome::SetChannel(channel);
#endif
+ // Start monitoring OOM kills.
+ memory_kills_monitor_ = base::MakeUnique<memory::MemoryKillsMonitor::Handle>(
+ memory::MemoryKillsMonitor::StartMonitoring());
+
ChromeBrowserMainPartsLinux::PreEarlyInitialization();
}
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.h ('k') | chrome/browser/memory/memory_kills_histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698