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

Unified Diff: content/browser/android/background_sync_network_observer_android.cc

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview 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: content/browser/android/background_sync_network_observer_android.cc
diff --git a/content/browser/android/background_sync_network_observer_android.cc b/content/browser/android/background_sync_network_observer_android.cc
index 2d9aa7dd5a2e6dd3342e6fdea6f27d0ded84a64a..04484f2864fc6b0ad7a02420e47905d72a2fcb3f 100644
--- a/content/browser/android/background_sync_network_observer_android.cc
+++ b/content/browser/android/background_sync_network_observer_android.cc
@@ -4,7 +4,6 @@
#include "content/browser/android/background_sync_network_observer_android.h"
-#include "base/android/context_utils.h"
#include "jni/BackgroundSyncNetworkObserver_jni.h"
using base::android::JavaParamRef;
@@ -38,8 +37,7 @@ void BackgroundSyncNetworkObserverAndroid::Observer::Init() {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaGlobalRef<jobject> obj(
Java_BackgroundSyncNetworkObserver_createObserver(
- env, base::android::GetApplicationContext(),
- reinterpret_cast<jlong>(this)));
+ env, reinterpret_cast<jlong>(this)));
j_observer_.Reset(obj);
}

Powered by Google App Engine
This is Rietveld 408576698