Merge "Preload libchromium_net in addition to libwebcore."

This commit is contained in:
Ben Murdoch
2011-09-01 10:40:29 -07:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ class JniUtil {
static {
System.loadLibrary("webcore");
System.loadLibrary("chromium_net");
}
private static final String LOGTAG = "webkit";
private JniUtil() {} // Utility class, do not instantiate.

View File

@@ -57,13 +57,14 @@ public final class WebViewCore {
private static final String LOGTAG = "webcore";
static {
// Load libwebcore during static initialization. This happens in the
// zygote process so it will be shared read-only across all app
// processes.
// Load libwebcore and libchromium_net during static initialization.
// This happens in the zygote process so they will be shared read-only
// across all app processes.
try {
System.loadLibrary("webcore");
System.loadLibrary("chromium_net");
} catch (UnsatisfiedLinkError e) {
Log.e(LOGTAG, "Unable to load webcore library");
Log.e(LOGTAG, "Unable to load native support libraries.");
}
}