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

Unified Diff: chrome/common/service_process_util_posix.h

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.h ('k') | chrome/common/service_process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_posix.h
diff --git a/chrome/common/service_process_util_posix.h b/chrome/common/service_process_util_posix.h
index 2202d0a621178e4370be7e794ac82c9a8a55a7e5..451180a965ffe346ec8da238d4564c78d1517232 100644
--- a/chrome/common/service_process_util_posix.h
+++ b/chrome/common/service_process_util_posix.h
@@ -10,6 +10,7 @@
#include <signal.h>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
@@ -42,7 +43,7 @@ class ServiceProcessTerminateMonitor
kTerminateMessage = 0xdecea5e
};
- explicit ServiceProcessTerminateMonitor(Task* terminate_task);
+ explicit ServiceProcessTerminateMonitor(const base::Closure& terminate_task);
virtual ~ServiceProcessTerminateMonitor();
// MessageLoopForIO::Watcher overrides
@@ -50,7 +51,7 @@ class ServiceProcessTerminateMonitor
virtual void OnFileCanWriteWithoutBlocking(int fd);
private:
- scoped_ptr<Task> terminate_task_;
+ base::Closure terminate_task_;
};
struct ServiceProcessState::StateData
« no previous file with comments | « chrome/common/service_process_util.h ('k') | chrome/common/service_process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698