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

Unified Diff: chrome/browser/sync_file_system/mock_remote_file_sync_service.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/mock_remote_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc b/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
index db58a51845102062f6d2a0010f8e795e0541f75b..7cf0db1467ab9f9482258b995b3259aecc1d75f2 100644
--- a/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/mock_remote_file_sync_service.cc
@@ -8,7 +8,8 @@
#include "base/bind.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "url/gurl.h"
#include "webkit/browser/fileapi/file_system_url.h"
@@ -90,7 +91,7 @@ void MockRemoteFileSyncService::AddFileStatusObserverStub(
void MockRemoteFileSyncService::RegisterOriginStub(
const GURL& origin,
const SyncStatusCallback& callback) {
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, SYNC_STATUS_OK));
}
@@ -99,14 +100,14 @@ void MockRemoteFileSyncService::DeleteOriginDirectoryStub(
const GURL& origin,
UninstallFlag flag,
const SyncStatusCallback& callback) {
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, SYNC_STATUS_OK));
}
void MockRemoteFileSyncService::ProcessRemoteChangeStub(
const SyncFileCallback& callback) {
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, SYNC_STATUS_NO_CHANGE_TO_SYNC,
fileapi::FileSystemURL()));

Powered by Google App Engine
This is Rietveld 408576698