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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 10885044: Remove storage context accessors from ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged to ToT 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/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 393176a35780b33cb9c489d718a0bd915f255e22..157e2ab0d21a2f60e71de2068ad1312fef27064b 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -37,6 +37,10 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
return it->second;
// There was no previous partition, so let's make a new one.
+ //
+ // TODO(ajwong): Move the the path construciton logic into
+ // StoragePartitionImpl::Create() once we get the
+ // PostCreateInitialization() ordering sorted out.
FilePath partition_path = browser_context_->GetPath();
if (!partition_id.empty()) {
// TODO(ajwong): This should check the path is valid?
@@ -46,7 +50,8 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
}
StoragePartitionImpl* storage_partition =
- StoragePartitionImpl::Create(browser_context_, partition_path);
+ StoragePartitionImpl::Create(browser_context_, partition_id,
+ partition_path);
partitions_[partition_id] = storage_partition;
PostCreateInitialization(storage_partition, partition_path);

Powered by Google App Engine
This is Rietveld 408576698