Index: chrome/browser/chromeos/drive/file_cache_unittest.cc |
diff --git a/chrome/browser/chromeos/drive/file_cache_unittest.cc b/chrome/browser/chromeos/drive/file_cache_unittest.cc |
index 4d0299965f6878e372226dba6a00e03097c6c076..fdfb9bb2a88dcdc7acf6d0db8ee1c117aa0be30f 100644 |
--- a/chrome/browser/chromeos/drive/file_cache_unittest.cc |
+++ b/chrome/browser/chromeos/drive/file_cache_unittest.cc |
@@ -13,6 +13,8 @@ |
#include "base/files/scoped_temp_dir.h" |
#include "base/md5.h" |
#include "base/path_service.h" |
+#include "base/single_thread_task_runner.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_system_util.h" |
@@ -44,15 +46,12 @@ class FileCacheTest : public testing::Test { |
fake_free_disk_space_getter_.reset(new FakeFreeDiskSpaceGetter); |
metadata_storage_.reset(new ResourceMetadataStorage( |
- metadata_dir, |
- base::MessageLoopProxy::current().get())); |
+ metadata_dir, base::ThreadTaskRunnerHandle::Get())); |
ASSERT_TRUE(metadata_storage_->Initialize()); |
- cache_.reset(new FileCache( |
- metadata_storage_.get(), |
- cache_files_dir_, |
- base::MessageLoopProxy::current().get(), |
- fake_free_disk_space_getter_.get())); |
+ cache_.reset(new FileCache(metadata_storage_.get(), cache_files_dir_, |
+ base::ThreadTaskRunnerHandle::Get(), |
+ fake_free_disk_space_getter_.get())); |
ASSERT_TRUE(cache_->Initialize()); |
} |