Index: android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java |
index 4d6c1ff14213f921411fe80413b239325cb59ee3..e930af1b3913c53dc8e6673d2ffadd48ea291572 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java |
@@ -11,7 +11,6 @@ import org.chromium.base.PathUtils; |
import org.chromium.base.ThreadUtils; |
import org.chromium.content.app.LibraryLoader; |
import org.chromium.content.browser.AndroidBrowserProcess; |
-import org.chromium.content.browser.ResourceExtractor; |
import org.chromium.content.common.ProcessInitException; |
/** |
@@ -35,7 +34,11 @@ public abstract class AwBrowserProcess { |
public static void loadLibrary() { |
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); |
- LibraryLoader.loadNow(); |
+ try { |
+ LibraryLoader.loadNow(); |
+ } catch (ProcessInitException e) { |
+ throw new RuntimeException("Cannot load WebView", e); |
+ } |
} |
// TODO(joth): remove when downstream is using new version below. |