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

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: Add OWNERS file by request. 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 75c257ac0818bce86e733b8a02a73b8c8f06295d..58d36c41c3d8588a737b97f98da88919f9b9ec14 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -396,12 +396,15 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
if (it != partitions_.end())
return it->second;
+ base::FilePath local_partition_path =
+ GetStoragePartitionPath(partition_domain, partition_name);
base::FilePath partition_path =
- browser_context_->GetPath().Append(
- GetStoragePartitionPath(partition_domain, partition_name));
+ browser_context_->GetPath().Append(local_partition_path);
+
StoragePartitionImpl* partition =
StoragePartitionImpl::Create(browser_context_, in_memory,
- partition_path);
+ partition_path,
+ local_partition_path);
partitions_[partition_config] = partition;
partition->GetQuotaManager()->SetTemporaryStorageEvictionPolicy(

Powered by Google App Engine
This is Rietveld 408576698