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

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

Issue 2579233002: Merge MemoryCoordinator and MemoryCoordinatorImpl into one class (Closed)
Patch Set: addressed comments 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
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 ef6afa2d06ae6dd330d2f621ea16f8bab48e3e04..08fbd0ebcf379d03c57dfc61f8a2168750c6980e 100644
--- a/content/browser/memory/memory_monitor_android.cc
+++ b/content/browser/memory/memory_monitor_android.cc
@@ -74,8 +74,7 @@ static void OnTrimMemory(JNIEnv* env,
const base::android::JavaParamRef<jclass>& jcaller,
jint level) {
DCHECK(level >= 0 && level <= kTrimMemoryLevelMax);
- auto* coordinator =
- static_cast<MemoryCoordinatorImpl*>(MemoryCoordinator::GetInstance());
+ auto* coordinator = MemoryCoordinatorImpl::GetInstance();
auto state = coordinator->GetGlobalMemoryState();
switch (state) {
« no previous file with comments | « content/browser/memory/memory_coordinator_unittest.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698