Index: chrome/browser/chromeos/drive/resource_metadata_unittest.cc |
diff --git a/chrome/browser/chromeos/drive/resource_metadata_unittest.cc b/chrome/browser/chromeos/drive/resource_metadata_unittest.cc |
index 07d7e795a316838b3528616200bcca577d247dab..145a4de3859b3bc0f6125972feba9f482ea4f2a9 100644 |
--- a/chrome/browser/chromeos/drive/resource_metadata_unittest.cc |
+++ b/chrome/browser/chromeos/drive/resource_metadata_unittest.cc |
@@ -9,7 +9,9 @@ |
#include <vector> |
#include "base/files/scoped_temp_dir.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/strings/stringprintf.h" |
+#include "base/thread_task_runner_handle.h" |
#include "chrome/browser/chromeos/drive/drive.pb.h" |
#include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
#include "chrome/browser/chromeos/drive/file_cache.h" |
@@ -138,19 +140,18 @@ class ResourceMetadataTest : public testing::Test { |
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
metadata_storage_.reset(new ResourceMetadataStorage( |
- temp_dir_.path(), base::MessageLoopProxy::current().get())); |
+ temp_dir_.path(), base::ThreadTaskRunnerHandle::Get())); |
ASSERT_TRUE(metadata_storage_->Initialize()); |
fake_free_disk_space_getter_.reset(new FakeFreeDiskSpaceGetter); |
- cache_.reset(new FileCache(metadata_storage_.get(), |
- temp_dir_.path(), |
- base::MessageLoopProxy::current().get(), |
+ cache_.reset(new FileCache(metadata_storage_.get(), temp_dir_.path(), |
+ base::ThreadTaskRunnerHandle::Get, |
fake_free_disk_space_getter_.get())); |
ASSERT_TRUE(cache_->Initialize()); |
- resource_metadata_.reset(new ResourceMetadata( |
- metadata_storage_.get(), cache_.get(), |
- base::MessageLoopProxy::current())); |
+ resource_metadata_.reset( |
+ new ResourceMetadata(metadata_storage_.get(), cache_.get(), |
+ base::ThreadTaskRunnerHandle::Get())); |
ASSERT_EQ(FILE_ERROR_OK, resource_metadata_->Initialize()); |