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

Unified Diff: content/browser/browser_main_loop.cc

Issue 897413002: Add a finch experiment for different memory pressure management strategies in ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address the code review comments. Created 5 years, 10 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 | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index d0386c7572e25206271dd2b8c02bf417342407f2..4d578a270ebd2d4e81ee682039379f0de803db23 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -488,8 +488,7 @@ void BrowserMainLoop::MainMessageLoopStart() {
InitializeMainThread();
#if defined(OS_CHROMEOS)
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kDisableMemoryPressureSystemChromeOS)) {
+ if (chromeos::switches::MemoryPressureHandlingEnabled()) {
memory_pressure_observer_.reset(new base::MemoryPressureObserverChromeOS(
chromeos::switches::GetMemoryPressureThresholds()));
}
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698