diff options
author | Kristian Monsen <kristianm@google.com> | 2010-12-08 11:09:25 +0000 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-12-09 10:55:59 +0000 |
commit | 3a4e8091e246e42ebd0add6342eb4eaed88012a3 (patch) | |
tree | 5ea0e391a5bf0b7ac68646fd2865a31e8ec3bad6 | |
parent | bcea3ca6cc5053a117659fa21c94181e04dc1773 (diff) | |
download | packages_apps_Browser-3a4e8091e246e42ebd0add6342eb4eaed88012a3.zip packages_apps_Browser-3a4e8091e246e42ebd0add6342eb4eaed88012a3.tar.gz packages_apps_Browser-3a4e8091e246e42ebd0add6342eb4eaed88012a3.tar.bz2 |
Not using a async task for removing session cookies
The cookie manager method are now taking care of making
this async and blocking on the webcore thread
Change-Id: I52d69b4e277aef84a59ff777302c7b223831b724
-rw-r--r-- | src/com/android/browser/Controller.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index e433e29..4dc4c4b 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -265,13 +265,8 @@ public class Controller mUi.needsRestoreAllTabs())) { // there is no quit on Android. But if we can't restore the state, // we can treat it as a new Browser, remove the old session cookies. - AsyncTask cookieCleaningTask = new AsyncTask<Object, Void, Void>() { - protected Void doInBackground(Object... none) { - CookieManager.getInstance().removeSessionCookie(); - return null; - } - }; - cookieCleaningTask.execute(); + // This is done async in the CookieManager. + CookieManager.getInstance().removeSessionCookie(); // remove any incognito files WebView.cleanupPrivateBrowsingFiles(); @@ -300,11 +295,6 @@ public class Controller } } - // Wait for sessions cookies to be cleared before loading urls - try { - cookieCleaningTask.get(); - } catch(InterruptedException e) { - } catch(java.util.concurrent.ExecutionException e) {} if (urlData.isEmpty()) { loadUrl(webView, mSettings.getHomePage()); } else { |