Index: base/threading/thread_perftest.cc |
diff --git a/base/threading/thread_perftest.cc b/base/threading/thread_perftest.cc |
index ef4e8f7158a9e689ad000ebe789f07a369f6d249..32b4289673c1926042135e98227eaad65c7f8e26 100644 |
--- a/base/threading/thread_perftest.cc |
+++ b/base/threading/thread_perftest.cc |
@@ -67,8 +67,8 @@ class ThreadPerfTest : public testing::Test { |
WaitableEvent::InitialState::NOT_SIGNALED); |
base::ThreadTicks ticks; |
thread.task_runner()->PostTask( |
- FROM_HERE, base::Bind(&ThreadPerfTest::TimeOnThread, |
- base::Unretained(this), &ticks, &done)); |
+ FROM_HERE, base::BindOnce(&ThreadPerfTest::TimeOnThread, |
+ base::Unretained(this), &ticks, &done)); |
done.Wait(); |
return ticks; |
} |
@@ -138,8 +138,8 @@ class TaskPerfTest : public ThreadPerfTest { |
return; |
} |
NextThread(hops)->task_runner()->PostTask( |
- FROM_HERE, base::Bind(&ThreadPerfTest::PingPong, base::Unretained(this), |
- hops - 1)); |
+ FROM_HERE, base::BindOnce(&ThreadPerfTest::PingPong, |
+ base::Unretained(this), hops - 1)); |
} |
}; |
@@ -210,8 +210,8 @@ class EventPerfTest : public ThreadPerfTest { |
remaining_hops_ = hops; |
for (size_t i = 0; i < threads_.size(); i++) { |
threads_[i]->task_runner()->PostTask( |
- FROM_HERE, base::Bind(&EventPerfTest::WaitAndSignalOnThread, |
- base::Unretained(this), i)); |
+ FROM_HERE, base::BindOnce(&EventPerfTest::WaitAndSignalOnThread, |
+ base::Unretained(this), i)); |
} |
// Kick off the Signal ping-ponging. |