summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 20:01:19 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 20:01:19 +0000
commit30dce773eb5fcd940ade62bdb8da8bd86b539744 (patch)
tree7a0474bfa7282c1c35a30ec57141a74b37a06dad /base
parent65333c20ddb320cc0b5f5fd377d2a870f0e442fc (diff)
downloadchromium_src-30dce773eb5fcd940ade62bdb8da8bd86b539744.zip
chromium_src-30dce773eb5fcd940ade62bdb8da8bd86b539744.tar.gz
chromium_src-30dce773eb5fcd940ade62bdb8da8bd86b539744.tar.bz2
Revert r8560 due to broken interactive_ui_tests
Review URL: http://codereview.chromium.org/18722 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util.h3
-rw-r--r--base/process_util_posix.cc4
-rw-r--r--base/process_util_win.cc6
3 files changed, 1 insertions, 12 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 4cadafc..f00016e 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -61,9 +61,6 @@ int GetCurrentProcId();
// Returns the ProcessHandle of the current process.
ProcessHandle GetCurrentProcessHandle();
-// Closes given process handle. Returns true on success.
-bool CloseProcessHandle(ProcessHandle process);
-
// Returns the unique ID for the specified process. This is functionally the
// same as Windows' GetProcessId(), but works on versions of Windows before
// Win XP SP1 as well.
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 9dbb2e6..87a4e36 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -30,10 +30,6 @@ ProcessHandle GetCurrentProcessHandle() {
return GetCurrentProcId();
}
-bool CloseProcessHandle(ProcessHandle process) {
- return true;
-}
-
int GetProcId(ProcessHandle process) {
return process;
}
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index e725e56..f1fd72c 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -33,10 +33,6 @@ 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().
@@ -192,7 +188,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 ||