Index: base/android/memory_pressure_listener_android.cc |
diff --git a/base/android/memory_pressure_listener_android.cc b/base/android/memory_pressure_listener_android.cc |
index 10ec87d4c43be21095e144265d2111cf26032e80..32e08710d5d886a642994b14ae26d9e3e09b65cd 100644 |
--- a/base/android/memory_pressure_listener_android.cc |
+++ b/base/android/memory_pressure_listener_android.cc |
@@ -4,6 +4,7 @@ |
#include "base/android/memory_pressure_listener_android.h" |
+#include "base/android/context_utils.h" |
#include "base/memory/memory_pressure_listener.h" |
#include "jni/MemoryPressureListener_jni.h" |
@@ -26,7 +27,8 @@ |
} |
void MemoryPressureListenerAndroid::RegisterSystemCallback(JNIEnv* env) { |
- Java_MemoryPressureListener_registerSystemCallback(env); |
+ Java_MemoryPressureListener_registerSystemCallback( |
+ env, GetApplicationContext()); |
} |
} // namespace android |