Index: content/browser/utility_process_host_impl.cc |
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc |
index 9df2a0caef152a905c2205963f3f346ff1948bfb..39dfe22b03f7c2addfc7f68af81444fcd14843a7 100644 |
--- a/content/browser/utility_process_host_impl.cc |
+++ b/content/browser/utility_process_host_impl.cc |
@@ -20,6 +20,7 @@ |
#include "content/browser/mojo/mojo_application_host.h" |
#include "content/browser/renderer_host/render_process_host_impl.h" |
#include "content/common/child_process_host_impl.h" |
+#include "content/common/in_process_child_thread_params.h" |
#include "content/common/utility_messages.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/content_browser_client.h" |
@@ -211,7 +212,10 @@ bool UtilityProcessHostImpl::StartProcess() { |
DCHECK(g_utility_main_thread_factory); |
// See comment in RenderProcessHostImpl::Init() for the background on why we |
// support single process mode this way. |
- in_process_thread_.reset(g_utility_main_thread_factory(channel_id)); |
+ in_process_thread_.reset( |
+ g_utility_main_thread_factory(InProcessChildThreadParams( |
+ channel_id, BrowserThread::UnsafeGetMessageLoopForThread( |
+ BrowserThread::IO)->task_runner()))); |
in_process_thread_->Start(); |
} else { |
const base::CommandLine& browser_command_line = |