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

Unified Diff: content/browser/child_process_launcher.cc

Issue 8556001: Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind(). (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 | « content/browser/browser_message_filter.cc ('k') | content/browser/device_orientation/provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index b8822f9e8942171ea060c0798151d3080c9d1274..c3df910f24150d538038bc48f91009949a7bd17c 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));
}
« no previous file with comments | « content/browser/browser_message_filter.cc ('k') | content/browser/device_orientation/provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698