Index: base/android/base_jni_onload.cc |
diff --git a/base/android/base_jni_onload.cc b/base/android/base_jni_onload.cc |
index 7ab4982c427276ac438ff0b2adabe46ca4cfc1da..0a82db4864c1d170052133dd2cd9da60777c6c38 100644 |
--- a/base/android/base_jni_onload.cc |
+++ b/base/android/base_jni_onload.cc |
@@ -12,13 +12,11 @@ |
namespace base { |
namespace android { |
-namespace { |
- |
-bool RegisterJNI(JNIEnv* env) { |
+bool OnJNIOnLoadRegisterJNI(JNIEnv* env) { |
return RegisterLibraryLoaderEntryHook(env); |
} |
-bool Init() { |
+bool OnJNIOnLoadInit() { |
InitAtExitManager(); |
JNIEnv* env = base::android::AttachCurrentThread(); |
base::android::InitReplacementClassLoader(env, |
@@ -26,32 +24,5 @@ bool Init() { |
return true; |
} |
-} // namespace |
- |
- |
-bool OnJNIOnLoadRegisterJNI(JavaVM* vm, |
- std::vector<RegisterCallback> callbacks) { |
- base::android::InitVM(vm); |
- JNIEnv* env = base::android::AttachCurrentThread(); |
- |
- callbacks.push_back(base::Bind(&RegisterJNI)); |
- for (std::vector<RegisterCallback>::reverse_iterator i = |
- callbacks.rbegin(); i != callbacks.rend(); ++i) { |
- if (!i->Run(env)) |
- return false; |
- } |
- return true; |
-} |
- |
-bool OnJNIOnLoadInit(std::vector<InitCallback> callbacks) { |
- callbacks.push_back(base::Bind(&Init)); |
- for (std::vector<InitCallback>::reverse_iterator i = |
- callbacks.rbegin(); i != callbacks.rend(); ++i) { |
- if (!i->Run()) |
- return false; |
- } |
- return true; |
-} |
- |
} // namespace android |
} // namespace base |