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

Unified Diff: chrome/browser/process_singleton_posix.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
« no previous file with comments | « chrome/browser/process_singleton_browsertest.cc ('k') | chrome/browser/process_singleton_posix_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/process_singleton_posix.cc
diff --git a/chrome/browser/process_singleton_posix.cc b/chrome/browser/process_singleton_posix.cc
index c8ed5b018a72f95bbef41e270da651eaa1849094..f8786c67e6404c2678b65f8c0b16da815ce02d74 100644
--- a/chrome/browser/process_singleton_posix.cc
+++ b/chrome/browser/process_singleton_posix.cc
@@ -694,8 +694,8 @@ void ProcessSingleton::LinuxWatcher::SocketReader::
// Return to the UI thread to handle opening a new browser tab.
ui_task_runner_->PostTask(
- FROM_HERE, base::Bind(&ProcessSingleton::LinuxWatcher::HandleMessage,
- parent_, current_dir, tokens, this));
+ FROM_HERE, base::BindOnce(&ProcessSingleton::LinuxWatcher::HandleMessage,
+ parent_, current_dir, tokens, this));
fd_watch_controller_.reset();
// LinuxWatcher::HandleMessage() is in charge of destroying this SocketReader
@@ -713,11 +713,9 @@ void ProcessSingleton::LinuxWatcher::SocketReader::FinishWithACK(
PLOG(ERROR) << "shutdown() failed";
BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&ProcessSingleton::LinuxWatcher::RemoveSocketReader,
- parent_,
- this));
+ BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&ProcessSingleton::LinuxWatcher::RemoveSocketReader,
+ parent_, this));
// We will be deleted once the posted RemoveSocketReader task runs.
}
@@ -1028,11 +1026,9 @@ bool ProcessSingleton::Create() {
DCHECK(BrowserThread::IsMessageLoopValid(BrowserThread::IO));
BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&ProcessSingleton::LinuxWatcher::StartListening,
- watcher_,
- sock));
+ BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&ProcessSingleton::LinuxWatcher::StartListening, watcher_,
+ sock));
return true;
}
« no previous file with comments | « chrome/browser/process_singleton_browsertest.cc ('k') | chrome/browser/process_singleton_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698