From 581ac1e0a6c31f93a4415cb840f24f6dbb7d969d Mon Sep 17 00:00:00 2001 From: "scottbyer@chromium.org" Date: Sat, 12 Nov 2011 00:44:21 +0000 Subject: NewRunnable* conversion to base::Bind For chrome/common/service_process* BUG=none TEST=none Review URL: http://codereview.chromium.org/8495039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109745 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/service/service_process.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/service') diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc index 5088334..a7ecabc 100644 --- a/chrome/service/service_process.cc +++ b/chrome/service/service_process.cc @@ -7,6 +7,7 @@ #include #include "base/basictypes.h" +#include "base/callback.h" #include "base/command_line.h" #include "base/environment.h" #include "base/i18n/rtl.h" @@ -210,7 +211,7 @@ bool ServiceProcess::Initialize(MessageLoopForUI* message_loop, // ready. if (!service_process_state_->SignalReady( io_thread_->message_loop_proxy(), - NewRunnableMethod(this, &ServiceProcess::Terminate))) { + base::Bind(&ServiceProcess::Terminate, base::Unretained(this)))) { return false; } @@ -345,7 +346,7 @@ void ServiceProcess::OnServiceDisabled() { void ServiceProcess::ScheduleShutdownCheck() { MessageLoop::current()->PostDelayedTask( FROM_HERE, - NewRunnableMethod(this, &ServiceProcess::ShutdownIfNeeded), + base::Bind(&ServiceProcess::ShutdownIfNeeded, base::Unretained(this)), kShutdownDelay); } -- cgit v1.1