| Index: webkit/dom_storage/dom_storage_context_unittest.cc
|
| diff --git a/webkit/dom_storage/dom_storage_context_unittest.cc b/webkit/dom_storage/dom_storage_context_unittest.cc
|
| index 6dc174a5ec0125c6b6d28aadce98a5abf7c15066..ce36928d97efe8a073686930d1d53a2695de3a32 100644
|
| --- a/webkit/dom_storage/dom_storage_context_unittest.cc
|
| +++ b/webkit/dom_storage/dom_storage_context_unittest.cc
|
| @@ -40,11 +40,11 @@ class DomStorageContextTest : public testing::Test {
|
| ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
| storage_policy_ = new quota::MockSpecialStoragePolicy;
|
| task_runner_ = new MockDomStorageTaskRunner(
|
| - base::MessageLoopProxy::current());
|
| + base::MessageLoopProxy::current().get());
|
| context_ = new DomStorageContext(temp_dir_.path(),
|
| FilePath(),
|
| - storage_policy_,
|
| - task_runner_);
|
| + storage_policy_.get(),
|
| + task_runner_.get());
|
| }
|
|
|
| virtual void TearDown() {
|
| @@ -192,8 +192,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
|
| // Create a DomStorageContext which will save sessionStorage on disk.
|
| context_ = new DomStorageContext(temp_dir_.path(),
|
| temp_dir_.path(),
|
| - storage_policy_,
|
| - task_runner_);
|
| + storage_policy_.get(),
|
| + task_runner_.get());
|
| context_->SetSaveSessionStorageOnDisk();
|
| ASSERT_EQ(temp_dir_.path(), context_->sessionstorage_directory());
|
|
|
| @@ -217,8 +217,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
|
| MessageLoop::current()->RunAllPending();
|
| context_ = new DomStorageContext(temp_dir_.path(),
|
| temp_dir_.path(),
|
| - storage_policy_,
|
| - task_runner_);
|
| + storage_policy_.get(),
|
| + task_runner_.get());
|
| context_->SetSaveSessionStorageOnDisk();
|
|
|
| // Read the data back.
|
| @@ -242,8 +242,8 @@ TEST_F(DomStorageContextTest, DeleteSessionStorage) {
|
| MessageLoop::current()->RunAllPending();
|
| context_ = new DomStorageContext(temp_dir_.path(),
|
| temp_dir_.path(),
|
| - storage_policy_,
|
| - task_runner_);
|
| + storage_policy_.get(),
|
| + task_runner_.get());
|
| context_->SetSaveSessionStorageOnDisk();
|
|
|
| // Now there should be no data.
|
|
|