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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: post dmuprh review Created 4 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_class_factory.cc
diff --git a/content/browser/indexed_db/indexed_db_class_factory.cc b/content/browser/indexed_db/indexed_db_class_factory.cc
index 71c30fd078f742f36a932c5b9d316ac6ee61d4bf..bcd6e599a7b0e25f3ea40dc62068e366033f36ed 100644
--- a/content/browser/indexed_db/indexed_db_class_factory.cc
+++ b/content/browser/indexed_db/indexed_db_class_factory.cc
@@ -37,13 +37,14 @@ IndexedDBDatabase* IndexedDBClassFactory::CreateIndexedDBDatabase(
IndexedDBTransaction* IndexedDBClassFactory::CreateIndexedDBTransaction(
int64_t id,
+ base::WeakPtr<IndexedDBConnection> connection,
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
const std::set<int64_t>& scope,
blink::WebIDBTransactionMode mode,
IndexedDBDatabase* db,
IndexedDBBackingStore::Transaction* backing_store_transaction) {
- return new IndexedDBTransaction(id, callbacks, scope, mode, db,
- backing_store_transaction);
+ return new IndexedDBTransaction(id, std::move(connection), callbacks, scope,
+ mode, db, backing_store_transaction);
}
LevelDBTransaction* IndexedDBClassFactory::CreateLevelDBTransaction(

Powered by Google App Engine
This is Rietveld 408576698