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

Unified Diff: base/test/thread_test_helper.cc

Issue 8572034: Convert NewRunnableMethod() to base::Bind() in base::TestThreadHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 | « no previous file | no next file » | 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 b762d9769e0b7954e6d2ba9cf5cb01cc136578fa..ad240b382f9937dcd1915bbd1a8dd9a4ce61ed3e 100644
--- a/base/test/thread_test_helper.cc
+++ b/base/test/thread_test_helper.cc
@@ -4,6 +4,7 @@
#include "base/test/thread_test_helper.h"
+#include "base/bind.h"
#include "base/location.h"
namespace base {
@@ -15,8 +16,8 @@ ThreadTestHelper::ThreadTestHelper(MessageLoopProxy* target_thread)
}
bool ThreadTestHelper::Run() {
- if (!target_thread_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &ThreadTestHelper::RunInThread))) {
+ if (!target_thread_->PostTask(
+ FROM_HERE, base::Bind(&ThreadTestHelper::RunInThread, this))) {
return false;
}
done_event_.Wait();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698