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

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

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win Created 7 years, 6 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/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 2a0cbe230840b37ab7d37795e0b3aae03554bf24..239af5c6d890cda683fff89b8bf64a4fec4c8f18 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -242,9 +242,9 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
params.ipc_database_callbacks_id,
host_transaction_id,
origin_url));
- scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_proxy =
- IndexedDBDatabaseCallbacksWrapper::Create(new IndexedDBDatabaseCallbacks(
- this, params.ipc_thread_id, params.ipc_database_callbacks_id));
+ scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks_proxy =
+ IndexedDBDatabaseCallbacks::Create(
+ this, params.ipc_thread_id, params.ipc_database_callbacks_id);
callbacks_proxy->SetDatabaseCallbacks(database_callbacks_proxy);
Context()->GetIDBFactory()->
Open(params.name,
@@ -474,8 +474,6 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCreateTransaction(
database->createTransaction(
host_transaction_id,
- new IndexedDBDatabaseCallbacks(
- parent_, params.ipc_thread_id, params.ipc_database_callbacks_id),
params.object_store_ids,
params.mode);
transaction_database_map_[host_transaction_id] = params.ipc_database_id;
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('k') | content/browser/indexed_db/indexed_db_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698