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

Unified Diff: base/test/thread_test_helper.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: Created 3 years, 9 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
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;

Powered by Google App Engine
This is Rietveld 408576698