Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: content/browser/browser_context.cc

Issue 10879075: Shard DatabaseTracker (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_context.cc
===================================================================
--- content/browser/browser_context.cc (revision 153709)
+++ content/browser/browser_context.cc (working copy)
@@ -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(
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698