Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index d68b174b2b86fd3acd3c50267eb8ee7732140aec..4a1bdfcf4dbcd5ac02fdd72920c68ec708f1b046 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -284,6 +284,7 @@ StoragePartitionImpl::StoragePartitionImpl( |
webkit_database::DatabaseTracker* database_tracker, |
DOMStorageContextWrapper* dom_storage_context, |
IndexedDBContextImpl* indexed_db_context, |
+ NavigationControllerContext* navigation_controller_context, |
WebRTCIdentityStore* webrtc_identity_store) |
: partition_path_(partition_path), |
quota_manager_(quota_manager), |
@@ -292,6 +293,7 @@ StoragePartitionImpl::StoragePartitionImpl( |
database_tracker_(database_tracker), |
dom_storage_context_(dom_storage_context), |
indexed_db_context_(indexed_db_context), |
+ navigation_controller_context_(navigation_controller_context), |
webrtc_identity_store_(webrtc_identity_store) {} |
StoragePartitionImpl::~StoragePartitionImpl() { |
@@ -367,6 +369,9 @@ StoragePartitionImpl* StoragePartitionImpl::Create( |
quota_manager->proxy(), |
idb_task_runner); |
+ scoped_refptr<NavigationControllerContext> navigation_controller_context = |
+ new NavigationControllerContext(path, quota_manager->proxy()); |
+ |
scoped_refptr<ChromeAppCacheService> appcache_service = |
new ChromeAppCacheService(quota_manager->proxy()); |
@@ -380,6 +385,7 @@ StoragePartitionImpl* StoragePartitionImpl::Create( |
database_tracker.get(), |
dom_storage_context.get(), |
indexed_db_context.get(), |
+ navigation_controller_context.get(), |
webrtc_identity_store.get()); |
} |
@@ -420,6 +426,11 @@ IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() { |
return indexed_db_context_.get(); |
} |
+NavigationControllerContext* |
+StoragePartitionImpl::GetNavigationControllerContext() { |
+ return navigation_controller_context_.get(); |
+} |
+ |
void StoragePartitionImpl::ClearDataImpl( |
uint32 remove_mask, |
uint32 quota_storage_remove_mask, |