| Index: base/android/base_jni_onload.cc
|
| diff --git a/base/android/base_jni_onload.cc b/base/android/base_jni_onload.cc
|
| index ae64120902741e28a83f13f4f7da2e52e946bdd5..3f8fa938d3d489b0a0aa68d36762e660e360a484 100644
|
| --- a/base/android/base_jni_onload.cc
|
| +++ b/base/android/base_jni_onload.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/android/jni_android.h"
|
| #include "base/android/jni_onload_delegate.h"
|
| +#include "base/android/jni_utils.h"
|
| #include "base/android/library_loader/library_loader_hooks.h"
|
|
|
| namespace base {
|
| @@ -25,6 +26,11 @@ bool BaseJNIOnLoadDelegate::RegisterJNI(JNIEnv* env) {
|
| }
|
|
|
| bool BaseJNIOnLoadDelegate::Init() {
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| +
|
| + base::android::InitReplacementClassLoader(env,
|
| + base::android::GetClassLoader(env));
|
| +
|
| return true;
|
| }
|
|
|
|
|