Flush TaskScheduler in ProfileBrowserTest.*.
When the BrowserScheduler/RedirectHistoryService experiment is disabled, HistoryService uses a dedicated thread for backend operations. This thread is joined when the HistoryService is deleted. When the BrowserScheduler/RedirectHistoryService experiment is enabled, HistoryService uses a TaskScheduler sequence for backend operations. These tasks can run after the HistoryService has been deleted. History backend tasks access databases in the profile directory. A crash occurs if these accesses occur after the profile directory has been deleted. To prevent this from happening in ProfileBrowserTest.*., this CL adds code to flush TaskScheduler before deleting the profile directory. BUG=661143, 676714 Review-Url: https://codereview.chromium.org/2611053003 Cr-Commit-Position: refs/heads/master@{#441951}
Showing
Please register or sign in to comment