| Index: chrome/browser/android/chrome_entry_point.cc
|
| diff --git a/chrome/browser/android/chrome_entry_point.cc b/chrome/browser/android/chrome_entry_point.cc
|
| index 5bc9215ded3a07c1f0967cfd1f5461d7ffd50081..c90eefa0d03ac7db241b8d341f9f6d74efd089a8 100644
|
| --- a/chrome/browser/android/chrome_entry_point.cc
|
| +++ b/chrome/browser/android/chrome_entry_point.cc
|
| @@ -25,6 +25,8 @@ bool NativeInit() {
|
|
|
| // 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());
|
| if (!android::OnJNIOnLoadRegisterJNI(vm, base::Bind(&RegisterJNI))) {
|
| return -1;
|
| }
|
|
|