From 83101a8cdf30c28db25dfa28530d73e2b1c0eee0 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Fri, 26 Nov 2010 11:33:35 +0000 Subject: No longer need to pass storage paths to WebView.cleanupPrivateBrowsingFiles() Requires the following changes to external/webkit and frameworks/base https://android-git.corp.google.com/g/81781 https://android-git.corp.google.com/g/81782 Bug: 3232569 Change-Id: Ib6c661035ac39726d94b2c9f7e54cdf887a6ba0a --- src/com/android/browser/Controller.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/com/android/browser/Controller.java') diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 41e73564f..d30ffb2dd 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -255,7 +255,7 @@ public class Controller // we can treat it as a new Browser, remove the old session cookies. CookieManager.getInstance().removeSessionCookie(); // remove any incognito files - WebView.cleanupPrivateBrowsingFiles(mActivity); + WebView.cleanupPrivateBrowsingFiles(); final Bundle extra = intent.getExtras(); // Create an initial tab. // If the intent is ACTION_VIEW and data is not null, the Browser is @@ -289,7 +289,7 @@ public class Controller } else { mUi.updateTabs(mTabControl.getTabs()); if (!restoreIncognitoTabs) { - WebView.cleanupPrivateBrowsingFiles(mActivity); + WebView.cleanupPrivateBrowsingFiles(); } // TabControl.restoreState() will create a new tab even if // restoring the state fails. @@ -2178,7 +2178,7 @@ public class Controller Tab newtab = mTabControl.getTab(currentIndex); setActiveTab(newtab); if (!mTabControl.hasAnyOpenIncognitoTabs()) { - WebView.cleanupPrivateBrowsingFiles(mActivity); + WebView.cleanupPrivateBrowsingFiles(); } } -- cgit v1.2.3