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

Unified Diff: components/cronet/android/chromium_url_request_context.cc

Issue 991923002: [cronet] Fix race to call InitApplicationContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove CreateRequestContextAdapter dead param Created 5 years, 9 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 | « no previous file | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/chromium_url_request_context.cc
diff --git a/components/cronet/android/chromium_url_request_context.cc b/components/cronet/android/chromium_url_request_context.cc
index 9d0e550755663c64cddf2c3db3d599dd1e77eb83..bfe98d679d96854a44c706e21abe74b0b7a07d91 100644
--- a/components/cronet/android/chromium_url_request_context.cc
+++ b/components/cronet/android/chromium_url_request_context.cc
@@ -63,7 +63,6 @@ bool ChromiumUrlRequestContextRegisterJni(JNIEnv* env) {
// Sets global user-agent to be used for all subsequent requests.
static jlong CreateRequestContextAdapter(JNIEnv* env,
jobject jcaller,
- jobject japp_context,
jstring juser_agent,
jint jlog_level,
jstring jconfig) {
@@ -85,11 +84,6 @@ static jlong CreateRequestContextAdapter(JNIEnv* env,
return 0;
}
- // Set application context.
- base::android::ScopedJavaLocalRef<jobject> scoped_app_context(env,
- japp_context);
- base::android::InitApplicationContext(env, scoped_app_context);
-
// TODO(mef): MinLogLevel is global, shared by all URLRequestContexts.
// Revisit this if each URLRequestContext would need an individual log level.
logging::SetMinLogLevel(static_cast<int>(jlog_level));
« no previous file with comments | « no previous file | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698