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

Unified Diff: base/chromeos/memory_pressure_observer_chromeos.h

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: 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
Index: base/chromeos/memory_pressure_observer_chromeos.h
diff --git a/base/chromeos/memory_pressure_observer_chromeos.h b/base/chromeos/memory_pressure_observer_chromeos.h
index 9af07d41d4789fd40a886123e4fdb3ae89cf39f5..b4d2821f55f1bb59a7036d797dea9ab4ec0a668f 100644
--- a/base/chromeos/memory_pressure_observer_chromeos.h
+++ b/base/chromeos/memory_pressure_observer_chromeos.h
@@ -50,6 +50,10 @@ class BASE_EXPORT MemoryPressureObserverChromeOS {
explicit MemoryPressureObserverChromeOS(MemoryPressureThresholds thresholds);
virtual ~MemoryPressureObserverChromeOS();
+ // Return the memory pressure management threshold. Controlled by a flag and
+ // FieldTrial.
Mr4D (OOO till 08-26) 2015/02/06 03:56:35 Not here.
+ static MemoryPressureThresholds GetMemoryPressureThresholds();
+
// Redo the memory pressure calculation soon and call again if a critical
// memory pressure prevails. Note that this call will trigger an asynchronous
// action which gives the system time to release memory back into the pool.

Powered by Google App Engine
This is Rietveld 408576698