commit | a27abd29f967f530c620acd7ab302066ee205382 | [log] [tgz] |
---|---|---|
author | Robert Liao <robliao@chromium.org> | Wed Jan 24 18:46:48 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 24 18:46:48 2018 |
tree | 1f2801a6995d83ccba502c0014b0aedf3475cbfd | |
parent | e173942fcdf74c98f99f90255df5272465aff66c [diff] |
Change Autofill Helper TaskScheduler::FlushForTesting() to Wait on TaskRunner tasks base::TaskScheduler::GetInstance()->FlushForTesting() may have been too big of a hammer to use here. I've moved this code back to a previous style of waiting for the DB task runner to flush (http://crrev.com/490312). The main issue here is that FlushForTesting() often gets called on the main thread, and with MessageLoop Task Scheduler redirection, FlushForTesting will wait for MessageLoop tasks to complete. If a MessageLoop task is waiting for the main thread to process a task and the main thread is calling FlushForTesting(), a deadlock will occur. If these components start using other task runners, a completion callback mechanism will best support this file going forward. BUG=667892,749310 Change-Id: I0693bf7a00b25be9a95e2bae89ec3b4167ba4d4a Reviewed-on: https://chromium-review.googlesource.com/874817 Reviewed-by: Pavel Yatsuk <pavely@chromium.org> Commit-Queue: Robert Liao <robliao@chromium.org> Cr-Commit-Position: refs/heads/master@{#531624}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .