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

Unified Diff: base/task_scheduler/task_tracker.cc

Issue 2215193003: DO NOT COMMIT -- Very confusing patch... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b1_dcheckfailedcatch
Patch Set: rebase Created 4 years, 4 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/task_scheduler/task_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_tracker.cc
diff --git a/base/task_scheduler/task_tracker.cc b/base/task_scheduler/task_tracker.cc
index 7de82bfb88dfcbd2f64bd92d1594331dcfe30a09..5e61ffd107fa4150711b6bef92dc8c6468168564 100644
--- a/base/task_scheduler/task_tracker.cc
+++ b/base/task_scheduler/task_tracker.cc
@@ -192,7 +192,7 @@ void TaskTracker::RunNextTaskInSequence(const Sequence* sequence) {
// All tasks run through here and the scheduler itself doesn't use singletons.
// Therefore, it isn't necessary to reset the singleton allowed bit after
// running the task.
- ThreadRestrictions::SetSingletonAllowed(
+ ThreadRestrictions::SetIOAllowed(
task->traits.shutdown_behavior() !=
TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN);
« no previous file with comments | « no previous file | base/task_scheduler/task_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698