| Index: content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
|
| diff --git a/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc b/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
|
| index 675d69df1c0d51dacdbd7a60f22e7793f679deca..ce69460253cf9d2acf44f159d4e8e7aa6cbe3223 100644
|
| --- a/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
|
| +++ b/content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
|
| @@ -29,6 +29,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;
|
|
|