| Index: content/common/service_manager/service_manager_connection_impl.cc
|
| diff --git a/content/common/service_manager/service_manager_connection_impl.cc b/content/common/service_manager/service_manager_connection_impl.cc
|
| index 4e511907808a5d42b03a251d4fc8bc4c876a9aeb..26f75d97eea463421adca445c7d69085695d5046 100644
|
| --- a/content/common/service_manager/service_manager_connection_impl.cc
|
| +++ b/content/common/service_manager/service_manager_connection_impl.cc
|
| @@ -213,11 +213,10 @@ class ServiceManagerConnectionImpl::IOThreadContext
|
| void RemoveConnectionFilterOnIOThread(int filter_id) {
|
| base::AutoLock lock(lock_);
|
| auto it = connection_filters_.find(filter_id);
|
| - // TODO(crbug.com/687247): This DCHECK is hit when the browser is shut down
|
| - // by the service manager (e.g. in response to an ash crash under mash).
|
| - // Figure out why.
|
| - DCHECK(it != connection_filters_.end());
|
| - connection_filters_.erase(it);
|
| + // During shutdown the connection filters might have been cleared already
|
| + // by ClearConnectionFiltersOnIOThread() above, so this id might not exist.
|
| + if (it != connection_filters_.end())
|
| + connection_filters_.erase(it);
|
| }
|
|
|
| void OnBrowserConnectionLost() {
|
|
|