Commit 99519e2e authored by Greg Thompson's avatar Greg Thompson Committed by Commit Bot

Wait for background I/O tasks to complete before destroying TestingProfiles.

The various SpellcheckCustomDictionaryTests post background tasks to
update the dictionary file. Allow these tasks to complete at TearDown
before destroying the TestingProfiles so that the directories on disk
aren't being removed while background threads are trying to write to
them.

This CL unblocks making base::CreateAndOpenTemporaryFileInDir DCHECK if
the target directory doesn't exist.

BUG=1075917
R=groby@chromium.org

Change-Id: I25b3317447f0928504e3315caa6b215410030c13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2193111
Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Reviewed-by: default avatarRachel Blum <groby@chromium.org>
Auto-Submit: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802089}
parent 943aa1d7
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment