| Index: components/cronet/android/cronet_library_loader.cc
|
| diff --git a/components/cronet/android/cronet_library_loader.cc b/components/cronet/android/cronet_library_loader.cc
|
| index 5286f9bca9b0fced274eea5d39325800a43e1bb3..65b00fcf82262a203cf3d78e0785d81607bccb51 100644
|
| --- a/components/cronet/android/cronet_library_loader.cc
|
| +++ b/components/cronet/android/cronet_library_loader.cc
|
| @@ -87,10 +87,11 @@ void CronetOnUnLoad(JavaVM* jvm, void* reserved) {
|
| }
|
| }
|
|
|
| -void CronetInitOnMainThread(JNIEnv* env, jclass jcaller, jobject jcontext) {
|
| +void CronetInitOnMainThread(JNIEnv* env, jclass jcaller, jobject japp_context) {
|
| // Set application context.
|
| - base::android::ScopedJavaLocalRef<jobject> scoped_context(env, jcontext);
|
| - base::android::InitApplicationContext(env, scoped_context);
|
| + base::android::ScopedJavaLocalRef<jobject> scoped_app_context(env,
|
| + japp_context);
|
| + base::android::InitApplicationContext(env, scoped_app_context);
|
|
|
| #if !defined(USE_ICU_ALTERNATIVES_ON_ANDROID)
|
| base::i18n::InitializeICU();
|
|
|