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

Unified Diff: base/trace_event/trace_category_unittest.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: rebase Created 3 years, 8 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 | « base/trace_event/memory_dump_scheduler.cc ('k') | base/trace_event/trace_event_system_stats_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_category_unittest.cc
diff --git a/base/trace_event/trace_category_unittest.cc b/base/trace_event/trace_category_unittest.cc
index a33924f4ffecd1cdaa520d232117b8775ca993f7..25f37ca73982fa328e6b8d41c25626352ea52a6d 100644
--- a/base/trace_event/trace_category_unittest.cc
+++ b/base/trace_event/trace_category_unittest.cc
@@ -130,7 +130,7 @@ TEST_F(TraceCategoryTest, ThreadRaces) {
WaitableEvent::InitialState::NOT_SIGNALED);
for (int i = 0; i < kNumThreads; i++) {
threads[i]->task_runner()->PostTask(
- FROM_HERE, Bind(&TestRaceThreadMain, Unretained(&sync_event)));
+ FROM_HERE, BindOnce(&TestRaceThreadMain, Unretained(&sync_event)));
}
sync_event.Signal();
for (int i = 0; i < kNumThreads; i++)
« no previous file with comments | « base/trace_event/memory_dump_scheduler.cc ('k') | base/trace_event/trace_event_system_stats_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698