| Index: components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
|
| diff --git a/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
|
| index df59922d15d193ed8efc7036a28cc405514a6c76..2a5aa86d680f66b0ebb36755d31103febf5d7074 100644
|
| --- a/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
|
| +++ b/components/test/android/browsertests_apk/components_browser_tests_jni_onload.cc
|
| @@ -28,6 +28,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(),
|
| + false);
|
| std::vector<base::android::RegisterCallback> register_callbacks;
|
| register_callbacks.push_back(base::Bind(&RegisterJNI));
|
| std::vector<base::android::InitCallback> init_callbacks;
|
|
|