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

Unified Diff: base/process_util_posix.cc

Issue 57062: Use portable typedef for PIDs (process IDs). (Closed)
Patch Set: speculative fix for win Created 11 years, 9 months 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 | « base/process_util.h ('k') | base/process_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_posix.cc
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 37888d51dacf4eb89d464f63a50e0a0fd419327f..439b8060354e3a4f5ce4ac3fb1b232cf7ec38b6f 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -27,7 +27,7 @@ const int kMicrosecondsPerSecond = 1000000;
namespace base {
-int GetCurrentProcId() {
+ProcessId GetCurrentProcId() {
return getpid();
}
@@ -35,7 +35,7 @@ ProcessHandle GetCurrentProcessHandle() {
return GetCurrentProcId();
}
-ProcessHandle OpenProcessHandle(int pid) {
+ProcessHandle OpenProcessHandle(ProcessId pid) {
// On Posix platforms, process handles are the same as PIDs, so we
// don't need to do anything.
return pid;
@@ -46,7 +46,7 @@ void CloseProcessHandle(ProcessHandle process) {
return;
}
-int GetProcId(ProcessHandle process) {
+ProcessId GetProcId(ProcessHandle process) {
return process;
}
« no previous file with comments | « base/process_util.h ('k') | base/process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698