TaskScheduler: Adjust shutdown behavior of delayed tasks.

With this CL, the shutdown behavior of a task posted with a delay to a
BLOCK_SHUTDOWN TaskRunner is automatically adjusted to SKIP_ON_SHUTDOWN.
This ensures that a delayed task never blocks shutdown before being
scheduled. This matches the behavior of SequencedWorkerPool.

TBR=danakj@chromium.org
BUG=553459

Review-Url: https://codereview.chromium.org/2383193002
Cr-Commit-Position: refs/heads/master@{#422541}


CrOS-Libchrome-Original-Commit: ad44b092b755176fc0f57ad0330efa2944d22a94
3 files changed
tree: 2ed3a425fc7df7b95ca155371a3e73a1f9358219
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/