Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / google_apis / drive / task_util.cc
index 420afac..6b2bbf4 100644 (file)
@@ -8,14 +8,10 @@
 
 namespace google_apis {
 
-void RunTaskOnThread(scoped_refptr<base::SequencedTaskRunner> task_runner,
-                     const base::Closure& task) {
-  if (task_runner->RunsTasksOnCurrentThread()) {
-    task.Run();
-  } else {
-    const bool posted = task_runner->PostTask(FROM_HERE, task);
-    DCHECK(posted);
-  }
+void RunTaskWithTaskRunner(scoped_refptr<base::TaskRunner> task_runner,
+                           const base::Closure& task) {
+  const bool posted = task_runner->PostTask(FROM_HERE, task);
+  DCHECK(posted);
 }
 
 }  // namespace google_apis