| Index: chrome/service/service_process.cc
|
| diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
|
| index 5088334e9245e69fa8a08a3f03c1ce23ca23235e..a7ecabcbcc94fc64278ace36cb82b1cd22df30fc 100644
|
| --- a/chrome/service/service_process.cc
|
| +++ b/chrome/service/service_process.cc
|
| @@ -7,6 +7,7 @@
|
| #include <algorithm>
|
|
|
| #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);
|
| }
|
|
|
|
|