Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_dispatcher_host.cc |
| diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
| index 02bf1977907d8cb56e95ef1844e5865073f926c9..302adbcca2413eee0f69fab02339186730917bac 100644 |
| --- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
| +++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
| @@ -614,7 +614,10 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnDestroyed( |
| int32 ipc_object_id) { |
| DCHECK( |
| parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread()); |
| - IndexedDBConnection* connection = map_.Lookup(ipc_object_id); |
| + IndexedDBConnection* connection = |
| + parent_->GetOrTerminateProcess(&map_, ipc_object_id); |
|
cmumford
2015/01/26 19:52:15
This still dies on non-official builds right? Will
jsbell
2015/01/26 19:57:22
Given that we do this for the other IPCs, but *thi
|
| + if (!connection) |
| + return; |
| if (connection->IsConnected()) |
| connection->Close(); |
| parent_->Context() |