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

Unified Diff: base/process/process_posix.cc

Issue 868543002: Move OpenProcessHandle to Process::Open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/process_handle_win.cc ('k') | base/process/process_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_posix.cc
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
index 5d7007c9c9e0bc29475799d159b8a0c2f1f073de..f04cfa33995202ffca002fdc8a739432cb8f4907 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);
« no previous file with comments | « base/process/process_handle_win.cc ('k') | base/process/process_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698