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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray mark. Created 4 years, 9 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 7a0dd9c94c0ca5c84eaa93f5e762d8a86b136573..7fefc640801a5902c859c70eb86af6391d627b69 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -396,12 +396,12 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
if (it != partitions_.end())
return it->second;
- base::FilePath partition_path =
- browser_context_->GetPath().Append(
- GetStoragePartitionPath(partition_domain, partition_name));
- StoragePartitionImpl* partition =
- StoragePartitionImpl::Create(browser_context_, in_memory,
- partition_path);
+ base::FilePath profile_path = browser_context_->GetPath();
+ base::FilePath relative_partition_path =
+ GetStoragePartitionPath(partition_domain, partition_name);
+
+ StoragePartitionImpl* partition = StoragePartitionImpl::Create(
+ browser_context_, in_memory, profile_path, relative_partition_path);
partitions_[partition_config] = partition;
partition->GetQuotaManager()->SetTemporaryStorageEvictionPolicy(

Powered by Google App Engine
This is Rietveld 408576698