| Index: base/process_util_win.cc
|
| diff --git a/base/process_util_win.cc b/base/process_util_win.cc
|
| index aea8cb96667638b0392ebe142a619e4efc3e3288..eaa6c88f1193967581f40439bdd6a6d1e7e247a5 100644
|
| --- a/base/process_util_win.cc
|
| +++ b/base/process_util_win.cc
|
| @@ -34,11 +34,10 @@ ProcessHandle GetCurrentProcessHandle() {
|
| }
|
|
|
| bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
|
| - // TODO(phajdan.jr): Take even more permissions out of this list.
|
| - ProcessHandle result = OpenProcess(PROCESS_DUP_HANDLE |
|
| - PROCESS_TERMINATE |
|
| - PROCESS_QUERY_INFORMATION |
|
| - SYNCHRONIZE,
|
| + // We try to limit privileges granted to the handle. If you need this
|
| + // for test code, consider using OpenPrivilegedProcessHandle instead of
|
| + // adding more privileges here.
|
| + ProcessHandle result = OpenProcess(PROCESS_DUP_HANDLE | PROCESS_TERMINATE,
|
| FALSE, pid);
|
|
|
| if (result == INVALID_HANDLE_VALUE)
|
|
|