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

Unified Diff: content/child/service_worker/service_worker_network_provider.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/child/service_worker/service_worker_network_provider.cc
diff --git a/content/child/service_worker/service_worker_network_provider.cc b/content/child/service_worker/service_worker_network_provider.cc
index 61cfba3f9026378e1ee27061ec7b611465372590..052ef10246f0948135f40d6d0a3d767e692f213a 100644
--- a/content/child/service_worker/service_worker_network_provider.cc
+++ b/content/child/service_worker/service_worker_network_provider.cc
@@ -215,6 +215,10 @@ ServiceWorkerNetworkProvider::ServiceWorkerNetworkProvider(
provider_id_, info->type, std::move(info->client_request),
ChildThreadImpl::current()->thread_safe_sender());
+ if (info->script_loader_factory_ptr_info.is_valid())
+ script_loader_factory_.Bind(
+ std::move(info->script_loader_factory_ptr_info));
+
ServiceWorkerDispatcher* dispatcher =
ServiceWorkerDispatcher::GetOrCreateThreadSpecificInstance(
ChildThreadImpl::current()->thread_safe_sender(),

Powered by Google App Engine
This is Rietveld 408576698