Index: base/task_scheduler/post_task.h |
diff --git a/base/task_scheduler/post_task.h b/base/task_scheduler/post_task.h |
index 69eda894ff874174061ee06d8d4d2a6fe79b7ef7..1fc10bffeade30848e53052c763932ceaced5d6f 100644 |
--- a/base/task_scheduler/post_task.h |
+++ b/base/task_scheduler/post_task.h |
@@ -30,7 +30,7 @@ namespace base { |
// To post a high priority one-off task to respond to a user interaction: |
// PostTaskWithTraits( |
// FROM_HERE, |
-// TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), |
+// {TaskPriority::USER_BLOCKING}, |
// Bind(...)); |
// |
// To post tasks that must run in sequence with default traits: |
@@ -43,8 +43,7 @@ namespace base { |
// shutdown: |
// scoped_refptr<SequencedTaskRunner> task_runner = |
// CreateSequencedTaskRunnerWithTraits( |
-// TaskTraits().MayBlock().WithShutdownBehavior( |
-// TaskShutdownBehavior::SKIP_ON_SHUTDOWN)); |
+// {MayBlock(), TaskShutdownBehavior::SKIP_ON_SHUTDOWN}); |
// task_runner.PostTask(FROM_HERE, Bind(...)); |
// task_runner.PostTask(FROM_HERE, Bind(...)); |
// |