Index: base/task_scheduler/priority_queue_unittest.cc |
diff --git a/base/task_scheduler/priority_queue_unittest.cc b/base/task_scheduler/priority_queue_unittest.cc |
index afaeafb644ed6bee80db97768c0d918cccb3cc5a..43db550595064779ee3f0bfb66c8d670daf50cba 100644 |
--- a/base/task_scheduler/priority_queue_unittest.cc |
+++ b/base/task_scheduler/priority_queue_unittest.cc |
@@ -60,27 +60,27 @@ class ThreadBeginningTransaction : public SimpleThread { |
TEST(TaskSchedulerPriorityQueueTest, PushPopPeek) { |
// Create test sequences. |
scoped_refptr<Sequence> sequence_a(new Sequence); |
- sequence_a->PushTask(MakeUnique<Task>( |
- FROM_HERE, Bind(&DoNothing), |
- TaskTraits().WithPriority(TaskPriority::USER_VISIBLE), TimeDelta())); |
+ sequence_a->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing), |
+ TaskTraits(TaskPriority::USER_VISIBLE), |
+ TimeDelta())); |
SequenceSortKey sort_key_a = sequence_a->GetSortKey(); |
scoped_refptr<Sequence> sequence_b(new Sequence); |
- sequence_b->PushTask(MakeUnique<Task>( |
- FROM_HERE, Bind(&DoNothing), |
- TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), TimeDelta())); |
+ sequence_b->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing), |
+ TaskTraits(TaskPriority::USER_BLOCKING), |
+ TimeDelta())); |
SequenceSortKey sort_key_b = sequence_b->GetSortKey(); |
scoped_refptr<Sequence> sequence_c(new Sequence); |
- sequence_c->PushTask(MakeUnique<Task>( |
- FROM_HERE, Bind(&DoNothing), |
- TaskTraits().WithPriority(TaskPriority::USER_BLOCKING), TimeDelta())); |
+ sequence_c->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing), |
+ TaskTraits(TaskPriority::USER_BLOCKING), |
+ TimeDelta())); |
SequenceSortKey sort_key_c = sequence_c->GetSortKey(); |
scoped_refptr<Sequence> sequence_d(new Sequence); |
- sequence_d->PushTask(MakeUnique<Task>( |
- FROM_HERE, Bind(&DoNothing), |
- TaskTraits().WithPriority(TaskPriority::BACKGROUND), TimeDelta())); |
+ sequence_d->PushTask(MakeUnique<Task>(FROM_HERE, Bind(&DoNothing), |
+ TaskTraits(TaskPriority::BACKGROUND), |
+ TimeDelta())); |
SequenceSortKey sort_key_d = sequence_d->GetSortKey(); |
// Create a PriorityQueue and a Transaction. |