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

Unified Diff: base/observer_list_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/observer_list_threadsafe.h ('k') | base/posix/unix_domain_socket_linux_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/observer_list_unittest.cc
diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc
index cc7889f0488706ce669819d6acbd211d2d135371..d0248c90faf1bf39847690b67d04fd9635393bb2 100644
--- a/base/observer_list_unittest.cc
+++ b/base/observer_list_unittest.cc
@@ -118,7 +118,7 @@ class AddRemoveThread : public PlatformThread::Delegate,
loop_ = new MessageLoop(); // Fire up a message loop.
loop_->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&AddRemoveThread::AddTask, weak_factory_.GetWeakPtr()));
+ base::BindOnce(&AddRemoveThread::AddTask, weak_factory_.GetWeakPtr()));
RunLoop().Run();
delete loop_;
loop_ = reinterpret_cast<MessageLoop*>(0xdeadbeef);
@@ -146,7 +146,7 @@ class AddRemoveThread : public PlatformThread::Delegate,
loop_->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&AddRemoveThread::AddTask, weak_factory_.GetWeakPtr()));
+ base::BindOnce(&AddRemoveThread::AddTask, weak_factory_.GetWeakPtr()));
}
void Quit() {
« no previous file with comments | « base/observer_list_threadsafe.h ('k') | base/posix/unix_domain_socket_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698