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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2249473002: Remove use of stl_util's STLDeleteContainerPairSecondPointers from content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 5088f2bb4d392a859dcc0383ecba14730505ec63..439d9eabfb7ffb40e03c4b656e93a7505e4e1e29 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -422,7 +422,7 @@ StoragePartitionImpl::~StoragePartitionImpl() {
GetBackgroundSyncContext()->Shutdown();
}
-StoragePartitionImpl* StoragePartitionImpl::Create(
+std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
BrowserContext* context,
bool in_memory,
const base::FilePath& relative_partition_path) {
@@ -512,16 +512,17 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
scoped_refptr<BroadcastChannelProvider>
broadcast_channel_provider = new BroadcastChannelProvider();
- StoragePartitionImpl* storage_partition = new StoragePartitionImpl(
- context, partition_path, quota_manager.get(), appcache_service.get(),
- filesystem_context.get(), database_tracker.get(),
- dom_storage_context.get(), indexed_db_context.get(),
- cache_storage_context.get(), service_worker_context.get(),
- special_storage_policy.get(), host_zoom_level_context.get(),
- platform_notification_context.get(), background_sync_context.get(),
- std::move(broadcast_channel_provider));
-
- service_worker_context->set_storage_partition(storage_partition);
+ std::unique_ptr<StoragePartitionImpl> storage_partition(
+ new StoragePartitionImpl(
+ context, partition_path, quota_manager.get(), appcache_service.get(),
+ filesystem_context.get(), database_tracker.get(),
+ dom_storage_context.get(), indexed_db_context.get(),
+ cache_storage_context.get(), service_worker_context.get(),
+ special_storage_policy.get(), host_zoom_level_context.get(),
+ platform_notification_context.get(), background_sync_context.get(),
+ std::move(broadcast_channel_provider)));
+
+ service_worker_context->set_storage_partition(storage_partition.get());
return storage_partition;
}
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698