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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expected test results changed 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_database_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index f01c413e100cf59a30ae49b0656fbc86eee55a86..b9f137ea94cfbe2503d31626c26ebf705af70dec 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -238,9 +238,12 @@ class IndexedDBDatabaseOperationTest : public testing::Test {
IndexedDBDatabaseMetadata::DEFAULT_VERSION));
EXPECT_EQ(IndexedDBDatabaseMetadata::NO_VERSION, db_->metadata().version);
+ std::unique_ptr<IndexedDBConnection> connection_(
cmumford 2016/07/01 18:35:00 connection_ is a local variable (not a class membe
palakj1 2016/07/02 00:48:13 Thanks for pointing that out. Turned connection to
+ new IndexedDBConnection(db_, callbacks_));
transaction_ = IndexedDBClassFactory::Get()->CreateIndexedDBTransaction(
- transaction_id, callbacks_, std::set<int64_t>() /*scope*/,
- blink::WebIDBTransactionModeVersionChange, db_.get(),
+ transaction_id, connection_->GetWeakPtr(),
+ std::set<int64_t>() /*scope*/,
+ blink::WebIDBTransactionModeVersionChange,
new IndexedDBFakeBackingStore::FakeTransaction(commit_success_));
db_->TransactionCreated(transaction_.get());

Powered by Google App Engine
This is Rietveld 408576698