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

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

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview tests Created 3 years, 8 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: 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 d351c9a9e85dd10875649f572ef8950f335a0509..260a91a75af418a9dcda69c1158adc0c6857865e 100644
--- a/content/browser/memory/memory_monitor_android.cc
+++ b/content/browser/memory/memory_monitor_android.cc
@@ -4,7 +4,6 @@
#include "content/browser/memory/memory_monitor_android.h"
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/memory/ptr_util.h"
#include "content/browser/memory/memory_coordinator_impl.h"
@@ -18,8 +17,7 @@ const size_t kMBShift = 20;
void RegisterComponentCallbacks() {
Java_MemoryMonitorAndroid_registerComponentCallbacks(
- base::android::AttachCurrentThread(),
- base::android::GetApplicationContext());
+ base::android::AttachCurrentThread());
}
}
@@ -40,9 +38,7 @@ class MemoryMonitorAndroidDelegateImpl : public MemoryMonitorAndroid::Delegate {
void MemoryMonitorAndroidDelegateImpl::GetMemoryInfo(MemoryInfo* out) {
DCHECK(out);
JNIEnv* env = base::android::AttachCurrentThread();
- Java_MemoryMonitorAndroid_getMemoryInfo(
- env, base::android::GetApplicationContext(),
- reinterpret_cast<intptr_t>(out));
+ Java_MemoryMonitorAndroid_getMemoryInfo(env, reinterpret_cast<intptr_t>(out));
}
// Called by JNI to populate ActivityManager.MemoryInfo.

Powered by Google App Engine
This is Rietveld 408576698