Chromium Code Reviews| Index: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc |
| diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc |
| index 6f54fa5df8d4b009dca293be88f07ff351837724..931b3a5377bbba1b0fb1e2e221c82aeec0b08627 100644 |
| --- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc |
| +++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc |
| @@ -242,6 +242,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen( |
| // created) if this origin is already over quota. |
| Context()->GetIDBFactory()->open( |
| params.name, |
| + params.version, |
| new IndexedDBCallbacks<WebIDBDatabase>(this, params.thread_id, |
| params.response_id, origin_url), |
| origin, NULL, webkit_glue::FilePathToWebString(indexed_db_path)); |
| @@ -276,6 +277,7 @@ ObjectType* IndexedDBDispatcherHost::GetOrTerminateProcess( |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)); |
| ObjectType* return_object = map->Lookup(return_object_id); |
| if (!return_object) { |
| + NOTREACHED() << "Uh oh, couldn't find object with id " << return_object_id; |
| content::RecordAction(UserMetricsAction("BadMessageTerminate_IDBMF")); |
| BadMessageReceived(); |
| } |
| @@ -1143,6 +1145,8 @@ void IndexedDBDispatcherHost:: |
| void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( |
| int32 object_id) { |
| + // TODO(dgrogan): This doesn't seem to be happening with some version change |
| + // transactions. |
|
jsbell
2012/07/25 22:12:16
Maybe clarify that it isn't new with this patch, f
dgrogan
2012/07/25 23:59:59
It could be new with this patch, I'm not sure, but
|
| transaction_size_map_.erase(object_id); |
| transaction_url_map_.erase(object_id); |
| parent_->DestroyObject(&map_, object_id); |