Index: content/shell/android/shell_library_loader.cc |
diff --git a/content/shell/android/shell_library_loader.cc b/content/shell/android/shell_library_loader.cc |
index d9b3d28b229148bbdc67e17b81ca47ce15a679d1..2330672276857d48bfac15df5df4c87128390f1c 100644 |
--- a/content/shell/android/shell_library_loader.cc |
+++ b/content/shell/android/shell_library_loader.cc |
@@ -27,6 +27,9 @@ bool Init() { |
// This is called by the VM when the shared library is first loaded. |
JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { |
+ base::android::InitVM(vm); |
+ base::android::InitJniRegistrationType(base::android::AttachCurrentThread(), |
+ true); |
Torne
2017/01/12 13:48:06
Seems like we shouldn't have to force it for the s
|
std::vector<base::android::RegisterCallback> register_callbacks; |
register_callbacks.push_back(base::Bind(&RegisterJNI)); |
std::vector<base::android::InitCallback> init_callbacks; |