diff options
Diffstat (limited to 'content/browser/child_process_launcher.cc')
-rw-r--r-- | content/browser/child_process_launcher.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc index b8822f9..c3df910 100644 --- a/content/browser/child_process_launcher.cc +++ b/content/browser/child_process_launcher.cc @@ -6,6 +6,7 @@ #include <utility> // For std::pair. +#include "base/bind.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" @@ -71,7 +72,7 @@ class ChildProcessLauncher::Context BrowserThread::PostTask( BrowserThread::PROCESS_LAUNCHER, FROM_HERE, - NewRunnableFunction( + base::Bind( &Context::LaunchInternal, make_scoped_refptr(this), client_thread_id_, @@ -205,9 +206,9 @@ class ChildProcessLauncher::Context BrowserThread::PostTask( client_thread_id, FROM_HERE, - NewRunnableMethod( - this_object.get(), + base::Bind( &Context::Notify, + this_object.get(), #if defined(OS_POSIX) && !defined(OS_MACOSX) use_zygote, #endif @@ -245,7 +246,7 @@ class ChildProcessLauncher::Context // don't this on the UI/IO threads. BrowserThread::PostTask( BrowserThread::PROCESS_LAUNCHER, FROM_HERE, - NewRunnableFunction( + base::Bind( &Context::TerminateInternal, #if defined(OS_POSIX) && !defined(OS_MACOSX) zygote_, @@ -375,7 +376,7 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus( void ChildProcessLauncher::SetProcessBackgrounded(bool background) { BrowserThread::PostTask( BrowserThread::PROCESS_LAUNCHER, FROM_HERE, - NewRunnableFunction( + base::Bind( &ChildProcessLauncher::Context::SetProcessBackgrounded, GetHandle(), background)); } |