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

Unified Diff: chrome/browser/chromeos/drive/file_cache_unittest.cc

Issue 1124813003: [chrome/browser/chromeos/drive] Avoid use of MessageLoopProxy by use of TTRH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: 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());
}

Powered by Google App Engine
This is Rietveld 408576698