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/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index e3f31c0..fc70a76 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -137,9 +137,6 @@
     // add for carrier feature
     private static Context sResPackageCtx;
 
-    //Determine if WebView is Initialized or not
-    private boolean mWebViewInitialized;
-
     public static void initialize(final Context context) {
         sInstance = new BrowserSettings(context);
     }
@@ -164,7 +161,6 @@
             Log.e("Res_Update", "Create Res Apk Failed");
         }
         BackgroundHandler.execute(mSetup);
-        mWebViewInitialized = false;
     }
 
     public void setController(Controller controller) {
@@ -198,10 +194,6 @@
         }
     }
 
-    public void initializeCookieSettings() {
-        CookieManager.getInstance().setAcceptCookie(acceptCookies());
-        mWebViewInitialized = true;
-    }
     private Runnable mSetup = new Runnable() {
 
         @Override
@@ -445,9 +437,8 @@
 
     private void syncSharedSettings() {
         mNeedsSharedSync = false;
-        if (mWebViewInitialized) {
-            CookieManager.getInstance().setAcceptCookie(acceptCookies());
-        }
+        CookieManager.getInstance().setAcceptCookie(acceptCookies());
+
         if (mController != null) {
             mController.setShouldShowErrorConsole(enableJavascriptConsole());
         }