Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3025)

Unified Diff: base/android/base_jni_onload.cc

Issue 920883002: Use combined native/manual JNI registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out common code in test Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/libwebviewchromium.gypi ('k') | base/android/jni_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/base_jni_onload.cc
diff --git a/base/android/base_jni_onload.cc b/base/android/base_jni_onload.cc
index ae64120902741e28a83f13f4f7da2e52e946bdd5..3f8fa938d3d489b0a0aa68d36762e660e360a484 100644
--- a/base/android/base_jni_onload.cc
+++ b/base/android/base_jni_onload.cc
@@ -6,6 +6,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_onload_delegate.h"
+#include "base/android/jni_utils.h"
#include "base/android/library_loader/library_loader_hooks.h"
namespace base {
@@ -25,6 +26,11 @@ bool BaseJNIOnLoadDelegate::RegisterJNI(JNIEnv* env) {
}
bool BaseJNIOnLoadDelegate::Init() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+
+ base::android::InitReplacementClassLoader(env,
+ base::android::GetClassLoader(env));
+
return true;
}
« no previous file with comments | « android_webview/libwebviewchromium.gypi ('k') | base/android/jni_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698