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

Unified Diff: android_webview/lib/main/webview_jni_onload_delegate.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/lib/main/webview_entry_point.cc ('k') | android_webview/libwebviewchromium.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/lib/main/webview_jni_onload_delegate.cc
diff --git a/android_webview/lib/main/webview_jni_onload_delegate.cc b/android_webview/lib/main/webview_jni_onload_delegate.cc
index 5b1d1c7b7f204f74a2d9ae9969b8016d42e23176..94be6ab334b2f170f3f42320ca57e9a7321c7df2 100644
--- a/android_webview/lib/main/webview_jni_onload_delegate.cc
+++ b/android_webview/lib/main/webview_jni_onload_delegate.cc
@@ -8,7 +8,6 @@
#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 "components/navigation_interception/component_jni_registrar.h"
#include "components/web_contents_delegate_android/component_jni_registrar.h"
#include "content/public/app/content_jni_onload.h"
@@ -42,10 +41,6 @@ bool WebViewJNIOnLoadDelegate::RegisterJNI(JNIEnv* env) {
}
bool WebViewJNIOnLoadDelegate::Init() {
- JNIEnv* env = base::android::AttachCurrentThread();
- 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
« no previous file with comments | « android_webview/lib/main/webview_entry_point.cc ('k') | android_webview/libwebviewchromium.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698