Revert "Enable the SiteDataCacheFacadeFactory in tests"
This reverts commit 59f71ba9. Reason for revert: It turns out that we can't do this as this is causing UAFs in tests using a BrowserTaskEnvironment and a TestingProfile: - Creating a TestingProfile forces the creation of all the BrowserContextKeyedServiceFactory associated with this profile. These factories are singletons and are leaked at the end of the test. - Destroying the BrowserTaskEnvironment at the end of the test causes the ThreadPool to shutdown. - If a BrowserContextKeyedServiceFactory ends up maintaining a reference to a task runner (like this factory does) then the second test that tries to use it is guaranteed to fail as it'll use a reference to a task runner that has been released. Original change's description: > Enable the SiteDataCacheFacadeFactory in tests > > Change-Id: Idea598dc21a96c4297841db2a733a2721f2d08e5 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261212 > Auto-Submit: Sébastien Marchand <sebmarchand@chromium.org> > Commit-Queue: Chris Hamilton <chrisha@chromium.org> > Reviewed-by: Chris Hamilton <chrisha@chromium.org> > Cr-Commit-Position: refs/heads/master@{#781543} TBR=chrisha@chromium.org,sebmarchand@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Change-Id: I9972b136a93824fc959d94c9a74122c41cce5123 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274198Reviewed-by:Sébastien Marchand <sebmarchand@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Auto-Submit: Sébastien Marchand <sebmarchand@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#783922}
Showing
Please register or sign in to comment