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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1332003002: Add option to disallow the discarding of a tab that was previously discarded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky@ comments + fix tests. Created 5 years, 3 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: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 87ec5c0c462e513212928d1725d657302f2aab6f..080810e4a58f35172b0330e7fe0822ca37a4a97b 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1162,13 +1162,14 @@ void ChromeBrowserMainParts::PreBrowserStart() {
// On CrOS, it is always enabled. On other platforms, it's behind a flag for
// now.
#if defined(OS_CHROMEOS)
- g_browser_process->GetOomPriorityManager()->Start();
+ g_browser_process->GetOomPriorityManager()->Start(false);
#elif defined(OS_WIN) || defined(OS_MACOSX)
const std::string group_name =
base::FieldTrialList::FindFullName("AutomaticTabDiscarding");
if (parsed_command_line().HasSwitch(switches::kEnableTabDiscarding) ||
base::StartsWith(group_name, "Enabled", base::CompareCase::SENSITIVE)) {
- g_browser_process->GetOomPriorityManager()->Start();
+ g_browser_process->GetOomPriorityManager()->Start(group_name ==
rkaplow 2015/09/11 21:07:03 suggest using StartsWith
Georges Khalil 2015/09/14 18:17:48 Done.
+ "Enabled_Once");
}
#endif
}
« no previous file with comments | « no previous file | chrome/browser/memory/oom_priority_manager.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698