Chromium Code Reviews| 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..ec2191f8fc24823083794e0c6b0c03a2a2e3ce59 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, |
| + IndexedDBConnection* connection, |
|
dmurph
2016/06/30 18:06:07
nit: update this to weakptr?
palakj1
2016/07/02 00:48:13
Done.
|
| 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, connection, scope, mode, |
| backing_store_transaction); |
| } |