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

Unified Diff: base/process/process_win.cc

Issue 860453002: Move OpenProcessHandleWithAccess to Process::OpenWithAccess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: base/process/process_win.cc
diff --git a/base/process/process_win.cc b/base/process/process_win.cc
index 2c267aaa43f6fe29019ee0a911984d62b75d457a..3d192ca6c36a6b39d107f19b705d1ef6326afbe9 100644
--- a/base/process/process_win.cc
+++ b/base/process/process_win.cc
@@ -53,6 +53,11 @@ Process Process::OpenWithExtraPriviles(ProcessId pid) {
return Process(handle);
}
+Process Process::OpenWithAccess(ProcessId pid, DWORD desired_access) {
+ ProcessHandle handle = ::OpenProcess(desired_access, FALSE, pid);
+ return Process(handle);
cpu_(ooo_6.6-7.5) 2015/01/22 00:38:32 return Process(::OpenProcess(desired_access, FALSE
rvargas (doing something else) 2015/01/22 01:51:17 Done.
+}
+
// static
Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) {
DCHECK_NE(handle, ::GetCurrentProcess());

Powered by Google App Engine
This is Rietveld 408576698