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

Unified Diff: chrome/browser/chromeos/drive/fileapi/async_file_util.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, 8 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/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|.

Powered by Google App Engine
This is Rietveld 408576698