| Index: google_apis/drive/task_util.cc
|
| diff --git a/google_apis/drive/task_util.cc b/google_apis/drive/task_util.cc
|
| index 420afacb8444ebeff9cfa904a2b089bbd2b0d9a8..6b2bbf4d1dae0445f071192f2d3704b7ecb0c43c 100644
|
| --- a/google_apis/drive/task_util.cc
|
| +++ b/google_apis/drive/task_util.cc
|
| @@ -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
|
|
|