diff options
author | Kristian Monsen <kristianm@google.com> | 2010-12-06 16:59:33 +0000 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-12-07 11:13:22 +0000 |
commit | e800e8e8aebb30817cea989009f3012d6174f1bc (patch) | |
tree | 2bb79fec58ddd4ed1034c5f71c8a4748e9330b83 /src/com/android/browser/Browser.java | |
parent | 1299e95f45b27e00a0df5d8652260bb7b980cf6c (diff) | |
download | packages_apps_Browser-e800e8e8aebb30817cea989009f3012d6174f1bc.zip packages_apps_Browser-e800e8e8aebb30817cea989009f3012d6174f1bc.tar.gz packages_apps_Browser-e800e8e8aebb30817cea989009f3012d6174f1bc.tar.bz2 |
Fixing Browser app object
Session cookies are removed in Controller.java,
if you override Application.onCreate() you should always call
super.onCreate()
Change-Id: I76e8eb1afd75212fa405b9c3b91f325877112d21
Diffstat (limited to 'src/com/android/browser/Browser.java')
-rw-r--r-- | src/com/android/browser/Browser.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java index 12c0c41..f49da5d 100644 --- a/src/com/android/browser/Browser.java +++ b/src/com/android/browser/Browser.java @@ -50,18 +50,19 @@ public class Browser extends Application { @Override public void onCreate() { + super.onCreate(); + // Set the umask so that native code creates files with the correct // permissions (0660) FileUtils.setUMask(FileUtils.S_IRWXO); if (LOGV_ENABLED) Log.v(LOGTAG, "Browser.onCreate: this=" + this); + // Fix heap utilization for better heap size characteristics. VMRuntime.getRuntime().setTargetHeapUtilization( TARGET_HEAP_UTILIZATION); // create CookieSyncManager with current Context CookieSyncManager.createInstance(this); - // remove all expired cookies - CookieManager.getInstance().removeExpiredCookie(); BrowserSettings.getInstance().asyncLoadFromDb(this); } |