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

Unified Diff: chrome/browser/process_singleton_posix_unittest.cc

Issue 2828663002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{i,l,m,n,p,r}* (Closed)
Patch Set: 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
Index: chrome/browser/process_singleton_posix_unittest.cc
diff --git a/chrome/browser/process_singleton_posix_unittest.cc b/chrome/browser/process_singleton_posix_unittest.cc
index 7c511739bb4f0a484f5d210fc943b8ac2b966532..63cb4729ca3a253287eab9540189336307ec5cef 100644
--- a/chrome/browser/process_singleton_posix_unittest.cc
+++ b/chrome/browser/process_singleton_posix_unittest.cc
@@ -105,8 +105,8 @@ class ProcessSingletonPosixTest : public testing::Test {
if (process_singleton_on_thread_) {
worker_thread_->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&ProcessSingletonPosixTest::DestructProcessSingleton,
- base::Unretained(this)));
+ base::BindOnce(&ProcessSingletonPosixTest::DestructProcessSingleton,
+ base::Unretained(this)));
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(worker_thread_->task_runner().get()));
@@ -124,8 +124,9 @@ class ProcessSingletonPosixTest : public testing::Test {
worker_thread_->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&ProcessSingletonPosixTest::CreateProcessSingletonInternal,
- base::Unretained(this)));
+ base::BindOnce(
+ &ProcessSingletonPosixTest::CreateProcessSingletonInternal,
+ base::Unretained(this)));
scoped_refptr<base::ThreadTestHelper> helper(
new base::ThreadTestHelper(worker_thread_->task_runner().get()));
@@ -214,8 +215,8 @@ class ProcessSingletonPosixTest : public testing::Test {
void BlockWorkerThread() {
worker_thread_->task_runner()->PostTask(
- FROM_HERE, base::Bind(&ProcessSingletonPosixTest::BlockThread,
- base::Unretained(this)));
+ FROM_HERE, base::BindOnce(&ProcessSingletonPosixTest::BlockThread,
+ base::Unretained(this)));
}
void UnblockWorkerThread() {
« no previous file with comments | « chrome/browser/process_singleton_posix.cc ('k') | chrome/browser/profile_resetter/profile_resetter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698