Chromium Code Reviews| 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 65b00fcf82262a203cf3d78e0785d81607bccb51..65fa39b000a130a6fc04b3b4740b5cd5cf181d6e 100644 |
| --- a/components/cronet/android/cronet_library_loader.cc |
| +++ b/components/cronet/android/cronet_library_loader.cc |
| @@ -87,12 +87,16 @@ void CronetOnUnLoad(JavaVM* jvm, void* reserved) { |
| } |
| } |
| -void CronetInitOnMainThread(JNIEnv* env, jclass jcaller, jobject japp_context) { |
| +void CronetInitApplicationContext(JNIEnv* env, |
| + jclass jcaller, |
| + jobject japp_context) { |
| // Set application context. |
| base::android::ScopedJavaLocalRef<jobject> scoped_app_context(env, |
| japp_context); |
| base::android::InitApplicationContext(env, scoped_app_context); |
| +} |
| +void CronetInitOnMainThread(JNIEnv* env, jclass jcaller) { |
| #if !defined(USE_ICU_ALTERNATIVES_ON_ANDROID) |
| base::i18n::InitializeICU(); |
|
xunjieli
2015/03/09 18:13:21
Should we move this to CronetOnLoad and maybe afte
pauljensen
2015/03/09 19:04:36
How about in another CL? This seems orthogonal to
xunjieli
2015/03/09 19:37:50
SGTM
|
| #endif |