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

Unified Diff: base/process_util_win.cc

Issue 18446: Porting in chrome/ (Closed)
Patch Set: last fixes Created 11 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
« no previous file with comments | « base/process_util_posix.cc ('k') | chrome/browser/base_history_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_win.cc
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index f1fd72caa5a2e478e82bcff86a11aebbd37a46f9..e725e5619e4e6afe08b09ea3833a93636620fb07 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -33,6 +33,10 @@ ProcessHandle GetCurrentProcessHandle() {
return ::GetCurrentProcess();
}
+bool CloseProcessHandle(ProcessHandle process) {
+ return ::CloseHandle(process) ? true : false;
+}
+
// Helper for GetProcId()
bool GetProcIdViaGetProcessId(ProcessHandle process, DWORD* id) {
// Dynamically get a pointer to GetProcessId().
@@ -188,7 +192,7 @@ bool DidProcessCrash(ProcessHandle handle) {
// Warning, this is not generic code; it heavily depends on the way
// the rest of the code kills a process.
-
+
if (exitcode == PROCESS_END_NORMAL_TERMINATON ||
exitcode == PROCESS_END_KILLED_BY_USER ||
exitcode == PROCESS_END_PROCESS_WAS_HUNG ||
« no previous file with comments | « base/process_util_posix.cc ('k') | chrome/browser/base_history_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698