Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 10829013: Chrome side changes for integer versions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add #include that windows needs Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ba6f4fa4baff25cd7ff8536fd5c444f2fc31d10e 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. Possibly introduced with integer version support.
transaction_size_map_.erase(object_id);
transaction_url_map_.erase(object_id);
parent_->DestroyObject(&map_, object_id);
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_database_callbacks.cc ('k') | content/common/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698