Index: chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc b/chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc |
index e3afa226929388e2fd7294e39b93689d7d34b79f..ef8a013840afab4051695142b1c811a87dd867d3 100644 |
--- a/chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc |
+++ b/chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.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 "google_apis/drive/drive_entry_kinds.h" |
#include "webkit/common/blob/scoped_file.h" |
@@ -76,7 +77,7 @@ void FakeAPIUtil::RemoveObserver(APIUtilObserver* observer) {} |
void FakeAPIUtil::GetDriveDirectoryForSyncRoot( |
const ResourceIdCallback& callback) { |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, |
google_apis::HTTP_SUCCESS, |
@@ -87,7 +88,7 @@ void FakeAPIUtil::GetDriveDirectoryForOrigin( |
const std::string& sync_root_resource_id, |
const GURL& origin, |
const ResourceIdCallback& callback) { |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, |
google_apis::HTTP_SUCCESS, |
@@ -95,7 +96,7 @@ void FakeAPIUtil::GetDriveDirectoryForOrigin( |
} |
void FakeAPIUtil::GetLargestChangeStamp(const ChangeStampCallback& callback) { |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, google_apis::HTTP_SUCCESS, largest_changestamp_)); |
} |
@@ -131,7 +132,7 @@ void FakeAPIUtil::ListChanges(int64 start_changestamp, |
change_feed->set_entries(entries.Pass()); |
change_feed->set_largest_changestamp(largest_changestamp_); |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind( |
callback, google_apis::HTTP_SUCCESS, base::Passed(&change_feed))); |
@@ -162,7 +163,7 @@ void FakeAPIUtil::DownloadFile(const std::string& resource_id, |
} |
webkit_blob::ScopedFile dummy; |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, error, file_md5, file_size, updated_time, |
base::Passed(&dummy))); |
@@ -194,7 +195,7 @@ void FakeAPIUtil::DeleteFile(const std::string& resource_id, |
const std::string& remote_file_md5, |
const GDataErrorCallback& callback) { |
if (!ContainsKey(remote_resources_, resource_id)) { |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, google_apis::HTTP_NOT_FOUND)); |
return; |
@@ -209,7 +210,7 @@ void FakeAPIUtil::DeleteFile(const std::string& resource_id, |
SYNC_FILE_TYPE_UNKNOWN, |
true /* deleted */); |
- base::MessageLoopProxy::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
base::Bind(callback, google_apis::HTTP_SUCCESS)); |
} |