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

Unified Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc

Issue 363373003: Replace MessageLoopProxy::current() with ThreadTaskRunnerHandle::Get() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc
index 92551e535cdf651fcf44dae70138320a79b2ebf9..0cd158c09237492e8ab224797e5bed386c63044e 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc
@@ -11,6 +11,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/logging.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/drive/drive_uploader.h"
#include "chrome/browser/drive/fake_drive_service.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h"
@@ -62,7 +63,7 @@ class RemoteToLocalSyncerTest : public testing::Test {
scoped_ptr<drive::DriveUploaderInterface>
drive_uploader(new drive::DriveUploader(
fake_drive_service.get(),
- base::MessageLoopProxy::current().get()));
+ base::ThreadTaskRunnerHandle::Get().get()));
fake_drive_helper_.reset(
new FakeDriveServiceHelper(fake_drive_service.get(),
drive_uploader.get(),
@@ -73,9 +74,9 @@ class RemoteToLocalSyncerTest : public testing::Test {
fake_drive_service.PassAs<drive::DriveServiceInterface>(),
drive_uploader.Pass(),
NULL,
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current()));
+ base::ThreadTaskRunnerHandle::Get(),
+ base::ThreadTaskRunnerHandle::Get(),
+ base::ThreadTaskRunnerHandle::Get()));
context_->SetRemoteChangeProcessor(remote_change_processor_.get());
RegisterSyncableFileSystem();
@@ -83,7 +84,7 @@ class RemoteToLocalSyncerTest : public testing::Test {
sync_task_manager_.reset(new SyncTaskManager(
base::WeakPtr<SyncTaskManager::Client>(),
10 /* max_parallel_task */,
- base::MessageLoopProxy::current()));
+ base::ThreadTaskRunnerHandle::Get()));
sync_task_manager_->Initialize(SYNC_STATUS_OK);
}

Powered by Google App Engine
This is Rietveld 408576698