| Index: content/browser/indexed_db/indexed_db_unittest.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
|
| index 3971d5acf3d14cd2e463296f1aacab37e46f2da9..a3d2fb6fa00c9b71836ed1f8aecc294c49e43584 100644
|
| --- a/content/browser/indexed_db/indexed_db_unittest.cc
|
| +++ b/content/browser/indexed_db/indexed_db_unittest.cc
|
| @@ -62,8 +62,11 @@ TEST_F(IndexedDBTest, ClearSessionOnlyDatabases) {
|
| // Create the scope which will ensure we run the destructor of the context
|
| // which should trigger the clean up.
|
| {
|
| - scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
|
| - temp_dir.path(), special_storage_policy_, NULL, task_runner_);
|
| + scoped_refptr<IndexedDBContextImpl> idb_context =
|
| + new IndexedDBContextImpl(temp_dir.path(),
|
| + special_storage_policy_.get(),
|
| + NULL,
|
| + task_runner_.get());
|
|
|
| normal_path = idb_context->GetFilePathForTesting(
|
| storage::GetIdentifierFromOrigin(kNormalOrigin));
|
| @@ -93,8 +96,11 @@ TEST_F(IndexedDBTest, SetForceKeepSessionState) {
|
| {
|
| // Create some indexedDB paths.
|
| // With the levelDB backend, these are directories.
|
| - scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
|
| - temp_dir.path(), special_storage_policy_, NULL, task_runner_);
|
| + scoped_refptr<IndexedDBContextImpl> idb_context =
|
| + new IndexedDBContextImpl(temp_dir.path(),
|
| + special_storage_policy_.get(),
|
| + NULL,
|
| + task_runner_.get());
|
|
|
| // Save session state. This should bypass the destruction-time deletion.
|
| idb_context->SetForceKeepSessionState();
|
| @@ -161,8 +167,11 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
|
|
|
| const GURL kTestOrigin("http://test/");
|
|
|
| - scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
|
| - temp_dir.path(), special_storage_policy_, NULL, task_runner_);
|
| + scoped_refptr<IndexedDBContextImpl> idb_context =
|
| + new IndexedDBContextImpl(temp_dir.path(),
|
| + special_storage_policy_.get(),
|
| + NULL,
|
| + task_runner_.get());
|
|
|
| scoped_refptr<ForceCloseDBCallbacks> open_callbacks =
|
| new ForceCloseDBCallbacks(idb_context, kTestOrigin);
|
| @@ -220,7 +229,7 @@ TEST_F(IndexedDBTest, DeleteFailsIfDirectoryLocked) {
|
| const GURL kTestOrigin("http://test/");
|
|
|
| scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
|
| - temp_dir.path(), special_storage_policy_, NULL, task_runner_);
|
| + temp_dir.path(), special_storage_policy_.get(), NULL, task_runner_.get());
|
|
|
| base::FilePath test_path = idb_context->GetFilePathForTesting(
|
| storage::GetIdentifierFromOrigin(kTestOrigin));
|
| @@ -246,7 +255,7 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnCommitFailure) {
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
|
|
| scoped_refptr<IndexedDBContextImpl> context = new IndexedDBContextImpl(
|
| - temp_dir.path(), special_storage_policy_, NULL, task_runner_);
|
| + temp_dir.path(), special_storage_policy_.get(), NULL, task_runner_.get());
|
|
|
| scoped_refptr<IndexedDBFactoryImpl> factory =
|
| static_cast<IndexedDBFactoryImpl*>(context->GetIDBFactory());
|
|
|