From 176aa48371da91eb98d675d87b4e70c7b26d696f Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Fri, 14 Nov 2008 03:25:15 +0000 Subject: Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code. Move Process and SharedMemory into the base namespace (most changes). Review URL: http://codereview.chromium.org/10895 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 0039d316-1c4b-4281-b951-d872f2087c98 --- base/process_util_win.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'base/process_util_win.cc') diff --git a/base/process_util_win.cc b/base/process_util_win.cc index d12f167..d163e30 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -22,7 +22,7 @@ typedef BOOL (WINAPI* HeapSetFn)(HANDLE, HEAP_INFORMATION_CLASS, PVOID, SIZE_T); } // namespace -namespace process_util { +namespace base { int GetCurrentProcId() { return ::GetCurrentProcessId(); @@ -329,11 +329,11 @@ bool CleanupProcesses(const std::wstring& executable_name, int wait_milliseconds, int exit_code, const ProcessFilter* filter) { - bool exited_cleanly = - process_util::WaitForProcessesToExit(executable_name, wait_milliseconds, - filter); + bool exited_cleanly = WaitForProcessesToExit(executable_name, + wait_milliseconds, + filter); if (!exited_cleanly) - process_util::KillProcesses(executable_name, exit_code, filter); + KillProcesses(executable_name, exit_code, filter); return exited_cleanly; } @@ -615,4 +615,4 @@ void RaiseProcessToHighPriority() { SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); } -} // namespace process_util +} // namespace base -- cgit v1.1