Commit b343ca46 authored by Olivier Li's avatar Olivier Li Committed by Commit Bot

Avoid file leaks in ios tests in /ios/chrome

This cl is generated with 'git cl split'

This CL was uploaded by git cl split.

R=rohitrao@chromium.org

Bug: 546640
Change-Id: I0743e2c24e68d42e962cc671139a0c17ffb127c6
Fixed: 1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991753
Commit-Queue: Oliver Li <olivierli@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Auto-Submit: Oliver Li <olivierli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730019}
parent 401c9fdd
...@@ -167,6 +167,10 @@ void PerfTestWithBVC::TearDown() { ...@@ -167,6 +167,10 @@ void PerfTestWithBVC::TearDown() {
SpinRunLoop(.5); SpinRunLoop(.5);
PerfTest::TearDown(); PerfTest::TearDown();
// Before destroying chrome_browser_state_ we need to make sure that no tasks
// are left on the ThreadPool since they might depend on it.
task_environment_.RunUntilIdle();
// The profiles can be deallocated only after the BVC has been deallocated. // The profiles can be deallocated only after the BVC has been deallocated.
chrome_browser_state_.reset(); chrome_browser_state_.reset();
} }
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