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

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

Issue 2160163002: [IndexedDB] Propogating Changes to Observer : Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser changes 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/mock_browsertest_indexed_db_class_factory.cc
diff --git a/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc b/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc
index 51edd56cab029940d5d7c470a19d6baebe514b9b..ec3ef6d226681a4fffc7200414fb0a3a2f9d6a5c 100644
--- a/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc
+++ b/content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc
@@ -64,16 +64,14 @@ class IndexedDBTestTransaction : public IndexedDBTransaction {
public:
IndexedDBTestTransaction(
int64_t id,
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
+ base::WeakPtr<IndexedDBConnection> connection,
const std::set<int64_t>& scope,
blink::WebIDBTransactionMode mode,
- IndexedDBDatabase* db,
IndexedDBBackingStore::Transaction* backing_store_transaction)
: IndexedDBTransaction(id,
- callbacks,
+ std::move(connection),
scope,
mode,
- db,
backing_store_transaction) {}
protected:
@@ -267,12 +265,11 @@ MockBrowserTestIndexedDBClassFactory::CreateIndexedDBDatabase(
IndexedDBTransaction*
MockBrowserTestIndexedDBClassFactory::CreateIndexedDBTransaction(
int64_t id,
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
+ base::WeakPtr<IndexedDBConnection> connection,
const std::set<int64_t>& scope,
blink::WebIDBTransactionMode mode,
- IndexedDBDatabase* db,
IndexedDBBackingStore::Transaction* backing_store_transaction) {
- return new IndexedDBTestTransaction(id, callbacks, scope, mode, db,
+ return new IndexedDBTestTransaction(id, std::move(connection), scope, mode,
backing_store_transaction);
}

Powered by Google App Engine
This is Rietveld 408576698