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

Unified Diff: base/test/thread_test_helper.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/test/scoped_task_scheduler_unittest.cc ('k') | base/threading/post_task_and_reply_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/thread_test_helper.cc
diff --git a/base/test/thread_test_helper.cc b/base/test/thread_test_helper.cc
index 97b6647a0aad7386c6468832fe92cddb2ee2fb65..38edc9d7f45fe7b8cb14c0582f0887b406196bb5 100644
--- a/base/test/thread_test_helper.cc
+++ b/base/test/thread_test_helper.cc
@@ -21,7 +21,7 @@ ThreadTestHelper::ThreadTestHelper(
bool ThreadTestHelper::Run() {
if (!target_thread_->PostTask(
- FROM_HERE, base::Bind(&ThreadTestHelper::RunInThread, this))) {
+ FROM_HERE, base::BindOnce(&ThreadTestHelper::RunInThread, this))) {
return false;
}
base::ThreadRestrictions::ScopedAllowWait allow_wait;
« no previous file with comments | « base/test/scoped_task_scheduler_unittest.cc ('k') | base/threading/post_task_and_reply_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698