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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1257543004: Add oom tab killing and the about:discards page on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memoryPressureOnLinux
Patch Set: Created 5 years, 5 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 | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/memory/oom_priority_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 7c3e331ab5e2335dba3c9d3e5832c9cd9b72b6c7..0e6c2aae71ffddc34e9f61dfd75e3c72b23abf3a 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1124,7 +1124,7 @@ void ChromeBrowserMainParts::PreBrowserStart() {
// now.
#if defined(OS_CHROMEOS)
g_browser_process->GetOomPriorityManager()->Start();
-#elif defined(OS_WIN)
+#elif defined(OS_WIN) || defined(OS_LINUX)
if (parsed_command_line().HasSwitch(switches::kEnableTabDiscarding))
g_browser_process->GetOomPriorityManager()->Start();
#endif
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/memory/oom_priority_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698