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

Unified Diff: content/browser/memory/memory_monitor_android.cc

Issue 2550623002: Add MemoryCoordinator::GetGlobalMemoryState() (Closed)
Patch Set: 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
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_monitor_android.cc
diff --git a/content/browser/memory/memory_monitor_android.cc b/content/browser/memory/memory_monitor_android.cc
index ba73f7363bf5f30b91d711892f0381dc89c4f0b1..9d144d05690e06cc86189707f5da5c8dcbc84adf 100644
--- a/content/browser/memory/memory_monitor_android.cc
+++ b/content/browser/memory/memory_monitor_android.cc
@@ -72,7 +72,7 @@ static void OnTrimMemory(JNIEnv* env,
const base::android::JavaParamRef<jclass>& jcaller,
jint level) {
DCHECK(level >= 0 && level <= kTrimMemoryLevelMax);
- auto state = MemoryCoordinator::GetInstance()->GetCurrentMemoryState();
+ auto state = MemoryCoordinator::GetInstance()->GetGlobalMemoryState();
switch (state) {
case base::MemoryState::NORMAL:
UMA_HISTOGRAM_ENUMERATION("Memory.Coordinator.TrimMemoryLevel.Normal",
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698