ThreadPool: Do not run BEST_EFFORT tasks during startup.
With this CL, a task posted with: base::PostTaskWithTraits( FROM_HERE, {base::TaskPriority::BEST_EFFORT, ...}, base::BindOnce(...)); Will not be allowed to run before startup is complete. The signal used to know that "startup is complete" is the same as AfterStartupTaskUtils. It is not perfect. It will be improved in a separate CL. This CL aims to be the smallest change possible to allow seamless migration of BrowserThread::PostAfterStartupTask() to base::PostTaskWithTraits(). Bug: 887407 Change-Id: I83ef387b82496ece3ed10c0c2466f42a6a5b19b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631668 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Carlos Caballero <carlscab@google.com> Reviewed-by:
Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#664488}
Showing
Please register or sign in to comment