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