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

Unified Diff: base/process/process_handle_win.cc

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually works now. Removes unnecessary logging. Created 7 years 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_handle_win.cc
diff --git a/base/process/process_handle_win.cc b/base/process/process_handle_win.cc
index 3bc3a125e0d46132586c7a4b3865706f970e680b..3be8c09cfafe5bb275b759546f9db5f24994cef9 100644
--- a/base/process/process_handle_win.cc
+++ b/base/process/process_handle_win.cc
@@ -29,8 +29,10 @@ bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
SYNCHRONIZE,
FALSE, pid);
- if (result == NULL)
+ if (result == NULL) {
+ DPLOG(ERROR);
return false;
+ }
*handle = result;
return true;
@@ -44,8 +46,10 @@ bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle) {
SYNCHRONIZE,
FALSE, pid);
- if (result == NULL)
+ if (result == NULL) {
+ DPLOG(ERROR);
return false;
+ }
*handle = result;
return true;

Powered by Google App Engine
This is Rietveld 408576698