Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3197)

Unified Diff: base/test/scoped_task_environment.h

Issue 2876583002: Do not flush main thread tasks in ~ScopedTaskEnvironment. (Closed)
Patch Set: CR-gab-5-add-comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/test/scoped_task_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_task_environment.h
diff --git a/base/test/scoped_task_environment.h b/base/test/scoped_task_environment.h
index 7b7180ae83292b2ed67b47c906f4a8b257637b31..fe7385ea477b14f9079568d52846a197308c5541 100644
--- a/base/test/scoped_task_environment.h
+++ b/base/test/scoped_task_environment.h
@@ -63,9 +63,8 @@ class ScopedTaskEnvironment {
ScopedTaskEnvironment(
MainThreadType main_thread_type = MainThreadType::DEFAULT);
- // Runs pending (Thread|Sequenced)TaskRunnerHandle tasks and pending
- // BLOCK_SHUTDOWN TaskScheduler tasks. Then, unregisters the TaskScheduler and
- // the (Thread|Sequenced)TaskRunnerHandle.
+ // Waits until no undelayed TaskScheduler tasks remain. Then, unregisters the
+ // TaskScheduler and the (Thread|Sequenced)TaskRunnerHandle.
~ScopedTaskEnvironment();
// Synchronously runs (Thread|Sequenced)TaskRunnerHandle tasks until no
« no previous file with comments | « no previous file | base/test/scoped_task_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698