| 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.
|
|
|