summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-30 13:56:57 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-30 13:56:57 -0700
commit0a1a1a1bf6198a91cbb30191d1aab907f76057c0 (patch)
treeb608f1b887defb7dcbb5702a21e8cd4031c233ca /src/com
parent2f40ce83ce2378ea1eae62323a605accc346ed12 (diff)
parentaab3f09b5c2d39b19067e57635614080b2403a46 (diff)
downloadpackages_apps_Browser-0a1a1a1bf6198a91cbb30191d1aab907f76057c0.zip
packages_apps_Browser-0a1a1a1bf6198a91cbb30191d1aab907f76057c0.tar.gz
packages_apps_Browser-0a1a1a1bf6198a91cbb30191d1aab907f76057c0.tar.bz2
Merge change 9214
* changes: Remove the session cookies if Browser starts without any saved state.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/BrowserActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index a2b5c88..c4c8d33 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -732,6 +732,9 @@ public class BrowserActivity extends Activity
// none of the files in the directory are referenced any more.
new ClearThumbnails().execute(
mTabControl.getThumbnailDir().listFiles());
+ // 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.
+ CookieManager.getInstance().removeSessionCookie();
final Intent intent = getIntent();
final Bundle extra = intent.getExtras();
// Create an initial tab.