Merge "Preload libchromium_net in addition to libwebcore."
This commit is contained in:
@@ -28,6 +28,7 @@ class JniUtil {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("webcore");
|
System.loadLibrary("webcore");
|
||||||
|
System.loadLibrary("chromium_net");
|
||||||
}
|
}
|
||||||
private static final String LOGTAG = "webkit";
|
private static final String LOGTAG = "webkit";
|
||||||
private JniUtil() {} // Utility class, do not instantiate.
|
private JniUtil() {} // Utility class, do not instantiate.
|
||||||
|
|||||||
@@ -57,13 +57,14 @@ public final class WebViewCore {
|
|||||||
private static final String LOGTAG = "webcore";
|
private static final String LOGTAG = "webcore";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Load libwebcore during static initialization. This happens in the
|
// Load libwebcore and libchromium_net during static initialization.
|
||||||
// zygote process so it will be shared read-only across all app
|
// This happens in the zygote process so they will be shared read-only
|
||||||
// processes.
|
// across all app processes.
|
||||||
try {
|
try {
|
||||||
System.loadLibrary("webcore");
|
System.loadLibrary("webcore");
|
||||||
|
System.loadLibrary("chromium_net");
|
||||||
} catch (UnsatisfiedLinkError e) {
|
} catch (UnsatisfiedLinkError e) {
|
||||||
Log.e(LOGTAG, "Unable to load webcore library");
|
Log.e(LOGTAG, "Unable to load native support libraries.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user