• Olivier Li's avatar
    Create a function to allow clients of TestingProfile to wait on the... · ec5b5700
    Olivier Li authored
    Create a function to allow clients of TestingProfile to wait on the destruction of its HistoryBackend.
    
    The HistoryServiceUsesTaskScheduler feature will soon be flipped to ENABLED_BY_DEFAULT.
    This will make HistoryServiceBackend's task runner dispatch to the ThreadPool instead of a
    dedicated base::Thread. Tests using TestingProfile need to be prepared to stay functional when that happens.
    
    This is done as the last mile of the chrome-wide effort to coalesce as much work as possible
    to the ThreadPool.
    
    Bug: 661143
    Change-Id: Iddb851d00ea64693f669bcb656829abcb2303b10
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868913Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
    Commit-Queue: Oliver Li <olivierli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#707810}
    ec5b5700
testing_profile.cc 44.6 KB