DescriptionAllow URLFetcher to be used from sequenced tasks.
Before this CL, URLFetcher could only be instantiated from a
single-threaded task. The response was dispatched on the origin thread.
With this CL, URLFetcher can also be instantiated from a sequenced
task. The response is dispatched on the origin sequence.
Since SequencedTaskRunnerHandle behaves the same way as
ThreadTaskRunnerHandle when used from a single-threaded task, this
CL does not affect the behavior of existing URLFetcher call sites
(they are necessarily in single-threaded tasks because
base::ThreadTaskRunnerHandle::Get() crashes when called from
a non-single-threaded task).
BUG=675631
Review-Url: https://codereview.chromium.org/2599873002
Cr-Commit-Position: refs/heads/master@{#443224}
Committed: https://chromium.googlesource.com/chromium/src/+/dc3ecbb07646f4fc719f49b853ea1ef2c3a10865
Patch Set 1 #
Total comments: 2
Patch Set 2 : remove get() #
Messages
Total messages: 22 (14 generated)
|