Index: content/renderer/renderer_blink_platform_impl.cc |
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc |
index 515bfa276ccc93a26802b7ad76581990ed68ce37..ba1c54276199b9f11ae5a18c73a5da6ea9f7a58f 100644 |
--- a/content/renderer/renderer_blink_platform_impl.cc |
+++ b/content/renderer/renderer_blink_platform_impl.cc |
@@ -310,12 +310,14 @@ void RendererBlinkPlatformImpl::Shutdown() { |
//------------------------------------------------------------------------------ |
blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() { |
+ if (!url_loader_factory_) |
+ interfaceProvider()->getInterface(mojo::GetProxy(&url_loader_factory_)); |
ChildThreadImpl* child_thread = ChildThreadImpl::current(); |
// There may be no child thread in RenderViewTests. These tests can still use |
// data URLs to bypass the ResourceDispatcher. |
return new content::WebURLLoaderImpl( |
child_thread ? child_thread->resource_dispatcher() : NULL, |
- currentThread()->getWebTaskRunner()->clone()); |
+ currentThread()->getWebTaskRunner()->clone(), url_loader_factory_.get()); |
} |
blink::WebThread* RendererBlinkPlatformImpl::currentThread() { |