| 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 f6b43bec6aadfa9eb37838196a9c5808b8a6492e..8f5743f5be85027b67783b2ebb3f4637bebaacae 100644
|
| --- a/content/browser/utility_process_host_impl.cc
|
| +++ b/content/browser/utility_process_host_impl.cc
|
| @@ -21,6 +21,7 @@
|
| #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/mojo/service_registry_impl.h"
|
| #include "content/common/utility_messages.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/content_browser_client.h"
|
| @@ -208,6 +209,10 @@ bool UtilityProcessHostImpl::StartProcess() {
|
| // launches a UtilityProcessHost.
|
| process_.reset(new BrowserChildProcessHostImpl(PROCESS_TYPE_UTILITY, this));
|
| process_->SetName(name_);
|
| + if (mojo_application_host_) {
|
| + process_->SetServiceRegistry(
|
| + static_cast<ServiceRegistryImpl*>(GetServiceRegistry())->GetWeakPtr());
|
| + }
|
|
|
| std::string channel_id = process_->GetHost()->CreateChannel();
|
| if (channel_id.empty())
|
|
|