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

Unified Diff: components/gcm_driver/gcm_driver_android.cc

Issue 2810863003: Android: Remove GetApplicationContext: components/ (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: components/gcm_driver/gcm_driver_android.cc
diff --git a/components/gcm_driver/gcm_driver_android.cc b/components/gcm_driver/gcm_driver_android.cc
index a0fedd5cf650ea7b0d940baba5007154aff8f961..b7230f21c46082a2251469f16b96d3d8c0a1735c 100644
--- a/components/gcm_driver/gcm_driver_android.cc
+++ b/components/gcm_driver/gcm_driver_android.cc
@@ -7,7 +7,6 @@
#include <stddef.h>
#include <stdint.h>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
@@ -31,10 +30,7 @@ namespace gcm {
: GCMDriver(store_path, blocking_task_runner),
recorder_(this) {
JNIEnv* env = AttachCurrentThread();
- java_ref_.Reset(
- Java_GCMDriver_create(env,
- reinterpret_cast<intptr_t>(this),
- base::android::GetApplicationContext()));
+ java_ref_.Reset(Java_GCMDriver_create(env, reinterpret_cast<intptr_t>(this)));
}
GCMDriverAndroid::~GCMDriverAndroid() {

Powered by Google App Engine
This is Rietveld 408576698