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

Unified Diff: base/android/memory_pressure_listener_android.cc

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix 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: 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 32e08710d5d886a642994b14ae26d9e3e09b65cd..10ec87d4c43be21095e144265d2111cf26032e80 100644
--- a/base/android/memory_pressure_listener_android.cc
+++ b/base/android/memory_pressure_listener_android.cc
@@ -4,7 +4,6 @@
#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"
@@ -27,8 +26,7 @@ bool MemoryPressureListenerAndroid::Register(JNIEnv* env) {
}
void MemoryPressureListenerAndroid::RegisterSystemCallback(JNIEnv* env) {
- Java_MemoryPressureListener_registerSystemCallback(
- env, GetApplicationContext());
+ Java_MemoryPressureListener_registerSystemCallback(env);
}
} // namespace android

Powered by Google App Engine
This is Rietveld 408576698