Reland "Migrate history_report to TaskScheduler API"

GetBlockingPool() is replaced by SequencedTaskRunner. There's no
per-task trait in SequencedTaskRunner, so the shutdown behavior are
all set to BLOCK_SHUTDOWN.

The reland allows IO in history_report tasks, in order to fix the
Icing crash.

Bug: 667892, 747849
Change-Id: I82efc0c6f215c04f26d2b599d24dbee650fe99b6
Reviewed-on: https://chromium-review.googlesource.com/583580
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Cr-Commit-Position: refs/heads/master@{#489161}
4 files changed