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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2943463002: Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)
Patch Set: . Created 3 years, 6 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.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 5c4270512f9614eafefc00b3d70723b7c9f8f3cd..6706e8429ee09faf52df6d968c79d7f50edbd06c 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -496,8 +496,6 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
partition->cache_storage_context_->Init(path, quota_manager_proxy);
partition->service_worker_context_ = new ServiceWorkerContextWrapper(context);
- partition->service_worker_context_->Init(path, quota_manager_proxy.get(),
- context->GetSpecialStoragePolicy());
partition->service_worker_context_->set_storage_partition(partition.get());
partition->appcache_service_ =
@@ -551,6 +549,10 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
partition->url_loader_factory_getter_ = new URLLoaderFactoryGetter();
partition->url_loader_factory_getter_->Initialize(partition.get());
+
+ partition->service_worker_context_->Init(
+ path, quota_manager_proxy.get(), context->GetSpecialStoragePolicy(),
+ blob_context.get(), partition->url_loader_factory_getter_.get());
}
return partition;

Powered by Google App Engine
This is Rietveld 408576698