DescriptionUse ThreadTaskRunnerHandle instead of MessageLoop::current() in base/.
This CL replaces some uses of MessageLoop::current() with
ThreadTaskRunnerHandle in base/.
Why? The fact that there's a MessageLoop on the thread is an
unnecessary implementation detail. When browser threads are migrated to
base/task_scheduler, tasks will no longer have access to a MessageLoop
but they will be able to get the current ThreadTaskRunnerHandle.
BUG=616447
Committed: https://crrev.com/270460f567927f16ea93741f28088a433280bc8c
Cr-Commit-Position: refs/heads/master@{#399711}
Patch Set 1 #
Total comments: 2
Patch Set 2 : CR danakj #
Messages
Total messages: 10 (4 generated)
|