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

Unified Diff: net/proxy/proxy_config_service_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
« no previous file with comments | « net/cert/x509_util_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_config_service_android.cc
diff --git a/net/proxy/proxy_config_service_android.cc b/net/proxy/proxy_config_service_android.cc
index 096ad47b11799742191bfa3ab16b7183d67d9bc0..1b3878decb6465987d39b0e3e0b06812bbdfa5df 100644
--- a/net/proxy/proxy_config_service_android.cc
+++ b/net/proxy/proxy_config_service_android.cc
@@ -6,7 +6,6 @@
#include <sys/system_properties.h>
-#include "base/android/context_utils.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
@@ -208,9 +207,7 @@ class ProxyConfigServiceAndroid::Delegate
DCHECK(OnJNIThread());
JNIEnv* env = AttachCurrentThread();
if (java_proxy_change_listener_.is_null()) {
- java_proxy_change_listener_.Reset(
- Java_ProxyChangeListener_create(
- env, base::android::GetApplicationContext()));
+ java_proxy_change_listener_.Reset(Java_ProxyChangeListener_create(env));
CHECK(!java_proxy_change_listener_.is_null());
}
Java_ProxyChangeListener_start(env, java_proxy_change_listener_,
« no previous file with comments | « net/cert/x509_util_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698