Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DebugServer sequence check (#4326)
b/369965331 Fixes error "FATAL:sequenced_task_runner.cc(113)] Check failed: current_default_handle. Error: This caller requires a sequenced context (i.e. the current task needs to run from a SequencedTaskRunner)" During the update of base, net and dependencies, there was a mass replacement of uses of SingleThreadedTaskRunner with SequencedTaskRunner. As part of that cleanup, we removed uses of base::MessageLoop::current() with calls to base::SequencedTaskRunner::GetDefault(). In this particular case for DebugServer, it uses a base::Thread directly rather than a SingleThreadedTaskRunner, so we can't compare our thread.task_runner() with base::SequencedTaskRunner::GetCurrentDefault(), but instead should use task_runner()->RunsTasksInCurrentSequence() (as mentioned in Jelle's comments in #2521)
- Loading branch information