Index: base/process/process_posix.cc |
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc |
index 93dec98a0f705e15a82fb6c17a95391785788800..e6be4680b9ff32765ef172d0304d676454def83a 100644 |
--- a/base/process/process_posix.cc |
+++ b/base/process/process_posix.cc |
@@ -38,16 +38,21 @@ Process Process::Current() { |
} |
// static |
-Process Process::OpenWithExtraPriviles(ProcessId pid) { |
+Process Process::Open(ProcessId pid) { |
if (pid == GetCurrentProcId()) |
return Current(); |
- // On POSIX process handles are the same as PIDs, and there are no privileges |
- // to set. |
+ // On POSIX process handles are the same as PIDs. |
return Process(pid); |
} |
// static |
+Process Process::OpenWithExtraPriviles(ProcessId pid) { |
+ // On POSIX there are no privileges to set. |
+ return Open(pid); |
+} |
+ |
+// static |
Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) { |
DCHECK_NE(handle, GetCurrentProcessHandle()); |
return Process(handle); |