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

Unified Diff: chrome/service/service_process.cc

Issue 8495039: NewRunnable* conversion to base::Bind for service process utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Could swear I build this on the Mac... 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 | « chrome/common/service_process_util_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/common/service_process_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698