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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2973233002: [Background Fetch] Cleanup/fix thread safety (Closed)
Patch Set: Remove n.b. from comments Created 3 years, 5 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/blob_storage/chrome_blob_storage_context.cc ('k') | no next file » | 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 9bc18af4c79e096f72a4cfe37e23b4be457dec88..7efa58044ede8191f2665ad5723d36adf9a2c54c 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -417,9 +417,6 @@ StoragePartitionImpl::~StoragePartitionImpl() {
if (GetPlatformNotificationContext())
GetPlatformNotificationContext()->Shutdown();
- if (GetBackgroundFetchContext())
- GetBackgroundFetchContext()->Shutdown();
-
if (GetBackgroundSyncContext())
GetBackgroundSyncContext()->Shutdown();
@@ -517,8 +514,8 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
partition->service_worker_context_);
partition->platform_notification_context_->Initialize();
- partition->background_fetch_context_ = new BackgroundFetchContext(
- context, partition.get(), partition->service_worker_context_);
+ partition->background_fetch_context_ =
+ new BackgroundFetchContext(context, partition->service_worker_context_);
partition->background_sync_context_ = new BackgroundSyncContext();
partition->background_sync_context_->Init(partition->service_worker_context_);
« no previous file with comments | « content/browser/blob_storage/chrome_blob_storage_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698