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

Unified Diff: base/android/memory_pressure_listener_android.cc

Issue 2800833003: Revert of Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: 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: 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

Powered by Google App Engine
This is Rietveld 408576698