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

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

Issue 2140193002: IndexedDB: Saving data loss status in IndexedDBPendingConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idb-data-loss
Patch Set: Deleted commented out code. Created 4 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/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 eee1f7ec4efe9736414f6d36803d9a87c72d9385..f6e26b592eefd8ba65e9b099a56e23d976b66982 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -379,14 +379,14 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks =
new IndexedDBDatabaseCallbacks(
this, params.ipc_thread_id, params.ipc_database_callbacks_id);
- IndexedDBPendingConnection connection(callbacks,
- database_callbacks,
- ipc_process_id_,
- host_transaction_id,
- params.version);
+ std::unique_ptr<IndexedDBPendingConnection> connection =
+ base::WrapUnique(new IndexedDBPendingConnection(
+ callbacks, database_callbacks, ipc_process_id_, host_transaction_id,
+ params.version));
DCHECK(request_context_);
- context()->GetIDBFactory()->Open(params.name, connection, request_context_,
- params.origin, indexed_db_path);
+ context()->GetIDBFactory()->Open(params.name, std::move(connection),
+ request_context_, params.origin,
+ indexed_db_path);
}
void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
« 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