DescriptionFlush 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}
Committed: https://chromium.googlesource.com/chromium/src/+/584e16efe96fd3b746987ac7afc357798f512921
Patch Set 1 #
Messages
Total messages: 17 (10 generated)
|