Move creation dummy Webview for loading native libraries to
Preloader constructor
- Remove all the hacks to intialize CookieManager since
we already loaded native libraries in Preloader
Change-Id: I7489d1692b45a86c1582d14e2281bbfa6ae0d74a
diff --git a/src/com/android/browser/Preloader.java b/src/com/android/browser/Preloader.java
index 7d8c367..99909b3 100644
--- a/src/com/android/browser/Preloader.java
+++ b/src/com/android/browser/Preloader.java
@@ -54,6 +54,10 @@
mSession = null;
mFactory = new BrowserWebViewFactory(context);
+ // Creating dummy Webview for browser to force loading of library;
+ // This will thereby prevent any singleton calls invoked directly
+ // even without the webview creation
+ (mFactory.instantiateWebView(null, android.R.attr.webViewStyle, false)).destroy();
}
private PreloaderSession getSession(String id) {