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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/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() {

Powered by Google App Engine
This is Rietveld 408576698