Merge "Add title bar indicator to tab"
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index f7e47fe..422fdff 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -270,8 +270,6 @@
// This is done async in the CookieManager.
CookieManager.getInstance().removeSessionCookie();
- // remove any incognito files
- 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
@@ -304,9 +302,6 @@
}
} else {
mUi.updateTabs(mTabControl.getTabs());
- if (!restoreIncognitoTabs) {
- WebView.cleanupPrivateBrowsingFiles();
- }
// TabControl.restoreState() will create a new tab even if
// restoring the state fails.
setActiveTab(mTabControl.getCurrentTab());
@@ -2193,9 +2188,6 @@
}
Tab newtab = mTabControl.getTab(currentIndex);
setActiveTab(newtab);
- if (!mTabControl.hasAnyOpenIncognitoTabs()) {
- WebView.cleanupPrivateBrowsingFiles();
- }
}
/**************** TODO: Url loading clean up *******************************/