Index: android_webview/lib/main/webview_entry_point.cc |
diff --git a/android_webview/lib/main/webview_entry_point.cc b/android_webview/lib/main/webview_entry_point.cc |
index 1aa1d27b385fecfe07930bd22548c05b362acac2..73bf8f7da140f325f0c150f977e248a20b8650cd 100644 |
--- a/android_webview/lib/main/webview_entry_point.cc |
+++ b/android_webview/lib/main/webview_entry_point.cc |
@@ -6,6 +6,7 @@ |
#include "android_webview/native/android_webview_jni_registrar.h" |
#include "base/android/jni_android.h" |
#include "base/android/jni_registrar.h" |
+#include "base/android/jni_utils.h" |
#include "base/android/library_loader/library_loader_hooks.h" |
#include "components/navigation_interception/component_jni_registrar.h" |
#include "components/web_contents_delegate_android/component_jni_registrar.h" |
@@ -47,6 +48,9 @@ JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { |
if (!android_webview::RegisterJni(env)) |
return -1; |
+ base::android::InitReplacementClassLoader(env, |
+ base::android::GetClassLoader(env)); |
+ |
content::SetContentMainDelegate(new android_webview::AwMainDelegate()); |
// Initialize url lib here while we are still single-threaded, in case we use |