ScopedProcessInformation protects against process/thread handle leaks from CreateProcess calls.

This CL includes the definition of the class along with changes to clients of CreateProcess.

Please see http://codereview.chromium.org/9959018/ for the most substantial usages I propose introducing.

This was motivated by realizing that my previous fix to LaunchProcess actually still had a leak of the thread handle.

BUG=None
TEST=tests added in base_unittests

Review URL: https://chromiumcodereview.appspot.com/9700038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130710 0039d316-1c4b-4281-b951-d872f2087c98
7 files changed