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

Unified Diff: google_apis/drive/task_util.h

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/fileapi/async_file_util.cc ('k') | google_apis/drive/task_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/task_util.h
diff --git a/google_apis/drive/task_util.h b/google_apis/drive/task_util.h
index 3cba9bd2cf40f90af4f399856002162e14b62f12..6d830dd0878c73bbe1db384973305252fb690743 100644
--- a/google_apis/drive/task_util.h
+++ b/google_apis/drive/task_util.h
@@ -10,9 +10,9 @@
namespace google_apis {
-// Runs task on a thread on which |task_runner| may run tasks.
-void RunTaskOnThread(scoped_refptr<base::SequencedTaskRunner> task_runner,
- const base::Closure& task);
+// Runs the task with the task runner.
+void RunTaskWithTaskRunner(scoped_refptr<base::TaskRunner> task_runner,
+ const base::Closure& task);
namespace internal {
@@ -116,7 +116,7 @@ CallbackType CreateComposedCallback(
template<typename CallbackType>
CallbackType CreateRelayCallback(const CallbackType& callback) {
return CreateComposedCallback(
- base::Bind(&RunTaskOnThread, base::MessageLoopProxy::current()),
+ base::Bind(&RunTaskWithTaskRunner, base::MessageLoopProxy::current()),
callback);
}
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi/async_file_util.cc ('k') | google_apis/drive/task_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698