Access the DatabaseTracker via a StoragePartition to support the isolated app feature.
TBR=brettw,mkwst,kalman
BUG=85121
Review URL: https://chromiumcodereview.appspot.com/10879075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153814 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 79cc086..3341284 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -109,13 +109,6 @@
return GetDefaultStoragePartition(browser_context)->GetIndexedDBContext();
}
-webkit_database::DatabaseTracker* BrowserContext::GetDatabaseTracker(
- BrowserContext* browser_context) {
- // TODO(ajwong): Change this API to require a SiteInstance instead of
- // using GetDefaultStoragePartition().
- return GetDefaultStoragePartition(browser_context)->GetDatabaseTracker();
-}
-
appcache::AppCacheService* BrowserContext::GetAppCacheService(
BrowserContext* browser_context) {
// TODO(ajwong): Change this API to require a SiteInstance instead of
@@ -176,7 +169,8 @@
}
void BrowserContext::SaveSessionState(BrowserContext* browser_context) {
- GetDatabaseTracker(browser_context)->SetForceKeepSessionState();
+ GetDefaultStoragePartition(browser_context)->GetDatabaseTracker()->
+ SetForceKeepSessionState();
if (BrowserThread::IsMessageLoopValid(BrowserThread::IO)) {
BrowserThread::PostTask(