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 5e8476ac190c077c7f8cf1ff380e6b6a41fe58c2..8b87f75a6e2ff149a1fd987a58fd9b5b873d0f82 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) { |