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..42fe5b97e170d7ed5d026d4fd1b1d655d0d03aa2 100644 |
--- a/content/browser/utility_process_host_impl.cc |
+++ b/content/browser/utility_process_host_impl.cc |
@@ -188,8 +188,9 @@ bool UtilityProcessHostImpl::StartMojoMode() { |
} |
ServiceRegistry* UtilityProcessHostImpl::GetServiceRegistry() { |
- DCHECK(mojo_application_host_); |
- return mojo_application_host_->service_registry(); |
+ if (mojo_application_host_) |
+ return mojo_application_host_->service_registry(); |
+ return nullptr; |
} |
void UtilityProcessHostImpl::SetName(const base::string16& name) { |