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 c6ee319c3f781f8a09e389c4fa06e16d5fbb0280..4cd4a85ae76cec7e8217a0e06c918db7488ed1a0 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -75,6 +75,7 @@ |
#include "content/browser/histogram_message_filter.h" |
#include "content/browser/indexed_db/indexed_db_context_impl.h" |
#include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
+#include "content/browser/loader/loader_test_service_context.h" |
#include "content/browser/loader/resource_message_filter.h" |
#include "content/browser/loader/resource_scheduler_filter.h" |
#include "content/browser/media/capture/audio_mirroring_manager.h" |
@@ -1100,6 +1101,13 @@ void RenderProcessHostImpl::RegisterMojoServices() { |
GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
mojo_application_host_->service_registry()); |
+ |
+ if (!loader_test_service_context_) |
+ loader_test_service_context_.reset(new LoaderTestServiceContext); |
+ |
+ mojo_application_host_->service_registry()->AddService<LoaderTestService>( |
+ base::Bind(&LoaderTestServiceContext::CreateService, |
+ base::Unretained(loader_test_service_context_.get()))); |
} |
void RenderProcessHostImpl::CreateStoragePartitionService( |