Index: base/process/process_win.cc |
diff --git a/base/process/process_win.cc b/base/process/process_win.cc |
index 2c267aaa43f6fe29019ee0a911984d62b75d457a..c311c994b534b6f6ffc23c5b9f44c17ada35cf3c 100644 |
--- a/base/process/process_win.cc |
+++ b/base/process/process_win.cc |
@@ -54,6 +54,11 @@ Process Process::OpenWithExtraPriviles(ProcessId pid) { |
} |
// static |
+Process Process::OpenWithAccess(ProcessId pid, DWORD desired_access) { |
+ return Process(::OpenProcess(desired_access, FALSE, pid)); |
+} |
+ |
+// static |
Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) { |
DCHECK_NE(handle, ::GetCurrentProcess()); |
ProcessHandle out_handle; |