Index: chrome/browser/chromeos/drive/fileapi/async_file_util.cc |
diff --git a/chrome/browser/chromeos/drive/fileapi/async_file_util.cc b/chrome/browser/chromeos/drive/fileapi/async_file_util.cc |
index 904d601b25cc081ccf9efa5378bceaeb58342c11..2c63ad44f5a77534c240a4303de7dc452cc4ab45 100644 |
--- a/chrome/browser/chromeos/drive/fileapi/async_file_util.cc |
+++ b/chrome/browser/chromeos/drive/fileapi/async_file_util.cc |
@@ -7,6 +7,8 @@ |
#include "base/callback.h" |
#include "base/files/file_path.h" |
#include "base/logging.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "chrome/browser/chromeos/drive/drive_integration_service.h" |
#include "chrome/browser/chromeos/drive/file_system_util.h" |
@@ -51,15 +53,13 @@ void PostFileSystemCallback( |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
BrowserThread::PostTask( |
- BrowserThread::UI, |
- FROM_HERE, |
- base::Bind(&fileapi_internal::RunFileSystemCallback, |
- file_system_getter, function, |
- on_error_callback.is_null() ? |
- base::Closure() : |
- base::Bind(&google_apis::RunTaskWithTaskRunner, |
- base::MessageLoopProxy::current(), |
- on_error_callback))); |
+ BrowserThread::UI, FROM_HERE, |
+ base::Bind(&fileapi_internal::RunFileSystemCallback, file_system_getter, |
+ function, on_error_callback.is_null() |
+ ? base::Closure() |
+ : base::Bind(&google_apis::RunTaskWithTaskRunner, |
+ base::ThreadTaskRunnerHandle::Get(), |
+ on_error_callback))); |
} |
// Runs CreateOrOpenFile callback based on the given |error| and |file|. |