Rename TaskRunner::RunsTasksOnCurrentThread() in //base
Renamed TaskRunner::RunsTasksOnCurrentThread() to
TaskRunner: :RunsTasksInCurrentSequence() in //base
Bug: 665062
Change-Id: I185b0b0948b5a821af233f60830d5c89743673f8
Reviewed-on: https://chromium-review.googlesource.com/563225
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#489347}
diff --git a/base/single_thread_task_runner.h b/base/single_thread_task_runner.h
index 6e931931..12b0575 100644
--- a/base/single_thread_task_runner.h
+++ b/base/single_thread_task_runner.h
@@ -24,10 +24,8 @@
// running other kinds of message loop, e.g. Jingle threads.
class BASE_EXPORT SingleThreadTaskRunner : public SequencedTaskRunner {
public:
- // A more explicit alias to RunsTasksOnCurrentThread().
- bool BelongsToCurrentThread() const {
- return RunsTasksOnCurrentThread();
- }
+ // A more explicit alias to RunsTasksInCurrentSequence().
+ bool BelongsToCurrentThread() const { return RunsTasksInCurrentSequence(); }
protected:
~SingleThreadTaskRunner() override {}