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

Unified Diff: chrome/browser/chromeos/drive/fileapi/async_file_util.cc

Issue 408153003: Simplify RunTaskOnThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileCacheTest 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
« no previous file with comments | « chrome/browser/chromeos/drive/file_cache_unittest.cc ('k') | google_apis/drive/task_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64b85e5b780dfb4d3f79b8e4d60be19a240b33bc..9a47bfc327326ea6fbbd569b7577df796cc8fa7d 100644
--- a/chrome/browser/chromeos/drive/fileapi/async_file_util.cc
+++ b/chrome/browser/chromeos/drive/fileapi/async_file_util.cc
@@ -57,7 +57,7 @@ void PostFileSystemCallback(
file_system_getter, function,
on_error_callback.is_null() ?
base::Closure() :
- base::Bind(&google_apis::RunTaskOnThread,
+ base::Bind(&google_apis::RunTaskWithTaskRunner,
base::MessageLoopProxy::current(),
on_error_callback)));
}
@@ -74,7 +74,7 @@ void RunCreateOrOpenFileCallback(
// (crbug.com/259184).
callback.Run(
file.Pass(),
- base::Bind(&google_apis::RunTaskOnThread,
+ base::Bind(&google_apis::RunTaskWithTaskRunner,
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
close_callback_on_ui_thread));
}
« no previous file with comments | « chrome/browser/chromeos/drive/file_cache_unittest.cc ('k') | google_apis/drive/task_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698