Chromium Code Reviews| Index: content/shell/android/linker_test_apk/content_linker_test_android.cc |
| diff --git a/content/shell/android/linker_test_apk/content_linker_test_android.cc b/content/shell/android/linker_test_apk/content_linker_test_android.cc |
| index 42c01d0e9407bcb1b7c47f558459af1ed070f02f..476fdb948d61e7744a7e0b90132161828b2df982 100644 |
| --- a/content/shell/android/linker_test_apk/content_linker_test_android.cc |
| +++ b/content/shell/android/linker_test_apk/content_linker_test_android.cc |
| @@ -4,6 +4,7 @@ |
| #include "base/android/jni_android.h" |
| #include "base/android/jni_registrar.h" |
| +#include "base/android/library_loader/library_loader_hooks.h" |
| #include "base/basictypes.h" |
| #include "base/debug/debugger.h" |
| #include "base/logging.h" |
| @@ -16,6 +17,9 @@ |
| // This is called by the VM when the shared library is first loaded. |
| JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { |
| + |
| + startup::SetLibraryLoadedHook(&content::LibraryLoaded); |
|
Yaron
2014/01/17 02:18:25
base::android?
aberent
2014/01/30 17:46:05
Done.
|
| + |
| base::android::InitVM(vm); |
| JNIEnv* env = base::android::AttachCurrentThread(); |