Move the AdjustWorkerCapacity PostDelayedTask Out of the SchedulerLock

It is unsafe to hold the SchedulerLock and call PostDelayedTask() on a
task runner as the PostDelayedTask() may itself acquire a
SchedulerLock.

BUG=749312,813857

Change-Id: Ie908fc34c0cbf0487de5e7991084e38007f0021d
Reviewed-on: https://chromium-review.googlesource.com/924386
Commit-Queue: Robert Liao <robliao@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538349}

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