diff options
author | John Reck <jreck@google.com> | 2011-07-25 13:55:44 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-07-26 10:37:02 -0700 |
commit | af262e703038106aef2e5187d120617836ffe9ce (patch) | |
tree | 4a3e1a7b6d96d7fe18c7a7234c1ff561f00b5ece /src/com/android/browser/Browser.java | |
parent | a229f22f88a0ae7a5e6601744c1b37795117bb4f (diff) | |
download | packages_apps_Browser-af262e703038106aef2e5187d120617836ffe9ce.zip packages_apps_Browser-af262e703038106aef2e5187d120617836ffe9ce.tar.gz packages_apps_Browser-af262e703038106aef2e5187d120617836ffe9ce.tar.bz2 |
Remove obsolete usage of WebIconDatabase
Bug: 5019676
Removes some other legacy code
Change-Id: I766d9d6f7805b5619a9769e6d72ae2f4c363d3ed
Diffstat (limited to 'src/com/android/browser/Browser.java')
-rw-r--r-- | src/com/android/browser/Browser.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java index c4412e2..76aaa0b 100644 --- a/src/com/android/browser/Browser.java +++ b/src/com/android/browser/Browser.java @@ -17,13 +17,9 @@ package com.android.browser; import android.app.Application; -import android.content.Intent; -import android.os.AsyncTask; import android.util.Log; import android.webkit.CookieSyncManager; -import dalvik.system.VMRuntime; - public class Browser extends Application { private final static String LOGTAG = "browser"; @@ -37,15 +33,6 @@ public class Browser extends Application { // Set to true to enable extra debug logging. final static boolean LOGD_ENABLED = true; - /** - * Specifies a heap utilization ratio that works better - * for the browser than the default ratio does. - */ - private final static float TARGET_HEAP_UTILIZATION = 0.75f; - - public Browser() { - } - @Override public void onCreate() { super.onCreate(); @@ -53,20 +40,11 @@ public class Browser extends Application { if (LOGV_ENABLED) Log.v(LOGTAG, "Browser.onCreate: this=" + this); - // Fix AsyncTask to use multiple threads - AsyncTask.setDefaultExecutor(AsyncTask.THREAD_POOL_EXECUTOR); - // Fix heap utilization for better heap size characteristics. - VMRuntime.getRuntime().setTargetHeapUtilization( - TARGET_HEAP_UTILIZATION); // create CookieSyncManager with current Context CookieSyncManager.createInstance(this); BrowserSettings.initialize(getApplicationContext()); Preloader.initialize(getApplicationContext()); } - static Intent createBrowserViewIntent() { - Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); - return intent; - } } |