| Index: base/test/scoped_task_environment.cc
|
| diff --git a/base/test/scoped_task_environment.cc b/base/test/scoped_task_environment.cc
|
| index 8ccf040a3fea88d3ca22114d07c5773a468cf001..672ffb053b542c5fc4b6b747a17f40076270acc2 100644
|
| --- a/base/test/scoped_task_environment.cc
|
| +++ b/base/test/scoped_task_environment.cc
|
| @@ -55,8 +55,11 @@ ScopedTaskEnvironment::ScopedTaskEnvironment(MainThreadType main_thread_type)
|
| }
|
|
|
| ScopedTaskEnvironment::~ScopedTaskEnvironment() {
|
| - // Intentionally do not RunLoop().RunUntilIdle() here as this simulates the
|
| - // replaced base::~MessageLoop() behaviour better.
|
| + // Ideally this would RunLoop().RunUntilIdle() here to catch any errors or
|
| + // infinite post loop in the remaining work but this isn't possible right now
|
| + // because base::~MessageLoop() didn't use to do this and adding it here would
|
| + // make the migration away from MessageLoop that much harder.
|
| +
|
| DCHECK_EQ(TaskScheduler::GetInstance(), task_scheduler_);
|
| // Without FlushForTesting(), DeleteSoon() and ReleaseSoon() tasks could be
|
| // skipped, resulting in memory leaks.
|
|
|