Index: content/common/indexed_db/indexed_db_dispatcher.cc |
diff --git a/content/common/indexed_db/indexed_db_dispatcher.cc b/content/common/indexed_db/indexed_db_dispatcher.cc |
index 30e54fae6a715026e7c2900518b403a148bf4f35..55a7bdb2f27d9c02609627932fcb659b7379315d 100644 |
--- a/content/common/indexed_db/indexed_db_dispatcher.cc |
+++ b/content/common/indexed_db/indexed_db_dispatcher.cc |
@@ -635,8 +635,10 @@ void IndexedDBDispatcher::OnSuccessOpenCursor( |
RendererWebIDBCursorImpl* cursor = new RendererWebIDBCursorImpl(object_id); |
cursors_[object_id] = cursor; |
+ // TODO(jsbell): Remove the next two calls after WK92278 rolls. |
cursor->SetKeyAndValue(key, primary_key, value); |
callbacks->onSuccess(cursor); |
+ callbacks->onSuccess(cursor, key, primary_key, value); |
pending_callbacks_.Remove(response_id); |
} |
@@ -652,12 +654,16 @@ void IndexedDBDispatcher::OnSuccessCursorContinue( |
RendererWebIDBCursorImpl* cursor = cursors_[cursor_id]; |
DCHECK(cursor); |
+ // TODO(jsbell): Remove the next call after WK92278·rolls. |
cursor->SetKeyAndValue(key, primary_key, value); |
WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(response_id); |
if (!callbacks) |
return; |
+ |
+ // TODO(jsbell): Remove the ...WithContinuation call after WK92278 rolls. |
callbacks->onSuccessWithContinuation(); |
+ callbacks->onSuccess(key, primary_key, value); |
pending_callbacks_.Remove(response_id); |
} |