summaryrefslogtreecommitdiffstats
path: root/chrome/service/service_process.cc
diff options
context:
space:
mode:
authorscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 00:44:21 +0000
committerscottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 00:44:21 +0000
commit581ac1e0a6c31f93a4415cb840f24f6dbb7d969d (patch)
tree5dbd9173b4f9e9c02384365d1782c2ac6097387b /chrome/service/service_process.cc
parentcfadda1d086876569f9cc5ee7096107d9c57b3f0 (diff)
downloadchromium_src-581ac1e0a6c31f93a4415cb840f24f6dbb7d969d.zip
chromium_src-581ac1e0a6c31f93a4415cb840f24f6dbb7d969d.tar.gz
chromium_src-581ac1e0a6c31f93a4415cb840f24f6dbb7d969d.tar.bz2
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
Diffstat (limited to 'chrome/service/service_process.cc')
-rw-r--r--chrome/service/service_process.cc5
1 files changed, 3 insertions, 2 deletions
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 <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);
}