Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 9f220861106242e97aa93d633380100cbd5c7824..a58c4fafc9604bb4acadf002a16235c964ff401c 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -1156,7 +1156,9 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
new ServiceWorkerDispatcherHost( |
- GetID(), message_port_message_filter_.get(), resource_context); |
+ GetID(), message_port_message_filter_.get(), resource_context, |
+ base::Bind(&RenderProcessHostImpl::CreateURLLoaderFactory, |
+ weak_factory_.GetWeakPtr())); |
service_worker_filter->Init( |
storage_partition_impl_->GetServiceWorkerContext()); |
AddFilter(service_worker_filter.get()); |
@@ -3000,4 +3002,9 @@ void RenderProcessHostImpl::OnMojoError(int render_process_id, |
bad_message::RPH_MOJO_PROCESS_ERROR); |
} |
+void RenderProcessHostImpl::CreateURLLoaderFactory( |
+ mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { |
+ URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); |
+} |
+ |
} // namespace content |