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

Unified Diff: android_webview/lib/main/webview_entry_point.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 | « no previous file | android_webview/lib/main/webview_jni_onload_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7de575a6e1c8ab6ca99e18726c6dcfc0937537e8..6827eadc1b2053aa88fadb114d24eec0fcc24938 100644
--- a/android_webview/lib/main/webview_entry_point.cc
+++ b/android_webview/lib/main/webview_entry_point.cc
@@ -9,6 +9,10 @@
// This is called by the VM when the shared library is first loaded.
// Most of the initialization is done in LibraryLoadedOnMainThread(), not here.
JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
+ // WebView uses native JNI exports; disable manual JNI registration to
+ // improve startup peformance.
+ base::android::DisableManualJniRegistration();
+
if (!android_webview::OnJNIOnLoad(vm))
return -1;
« no previous file with comments | « no previous file | android_webview/lib/main/webview_jni_onload_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698