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..ef46b9fdfbbc3a27f109e481cf7f3764e05d6823 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 { |
@@ -48,6 +49,9 @@ bool OnJNIOnLoad(JavaVM* vm, |
} |
if (ret) { |
+ base::android::InitReplacementClassLoader(env, |
+ base::android::GetClassLoader(env)); |
michaelbai
2015/02/13 04:36:07
Move this to BaseJNIOnLoadDelegate::Init()
Torne
2015/02/13 14:08:04
Hm. The JNI environment isn't passed to the init f
|
+ |
for (std::vector<JNIOnLoadDelegate*>::reverse_iterator i = |
delegates->rbegin(); i != delegates->rend(); ++i) { |
if (!(*i)->Init()) { |