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

Unified Diff: android_webview/lib/main/webview_entry_point.cc

Issue 2501193003: Selectively perform JNI registration in render processes on Android. (Closed)
Patch Set: Address Ted C comments Created 3 years, 11 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 | base/android/java/src/org/chromium/base/JNIUtils.java » ('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 dfda80186b27ebc244ccb42c41d06b8c93031d95..c13e331c10dbae56c96eb0ad8a3196f211d0dcc6 100644
--- a/android_webview/lib/main/webview_entry_point.cc
+++ b/android_webview/lib/main/webview_entry_point.cc
@@ -12,7 +12,7 @@ JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
// WebView uses native JNI exports; disable manual JNI registration because
// we don't have a good way to detect the JNI registrations which is called,
// outside of OnJNIOnLoadRegisterJNI code path.
- base::android::DisableManualJniRegistration();
+ base::android::SetJniRegistrationType(base::android::NO_JNI_REGISTRATION);
base::android::InitVM(vm);
base::android::SetNativeInitializationHook(&android_webview::OnJNIOnLoadInit);
return JNI_VERSION_1_4;
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/JNIUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698