Index: chrome/installer/test/alternate_version_generator.cc |
diff --git a/chrome/installer/test/alternate_version_generator.cc b/chrome/installer/test/alternate_version_generator.cc |
index fd66c012f153e5082dd6938d2f013810d4a2f347..0d505c844be9bf7868d9b9e5b16e05a892f3d402 100644 |
--- a/chrome/installer/test/alternate_version_generator.cc |
+++ b/chrome/installer/test/alternate_version_generator.cc |
@@ -214,13 +214,13 @@ |
bool RunProcessAndWait(const wchar_t* exe_path, const std::wstring& cmdline, |
int* exit_code) { |
bool result = true; |
+ base::win::ScopedHandle process; |
base::LaunchOptions options; |
options.wait = true; |
options.start_hidden = true; |
- base::Process process = base::LaunchProcess(cmdline, options); |
- if (process.IsValid()) { |
+ if (base::LaunchProcess(cmdline, options, &process)) { |
if (exit_code) { |
- if (!GetExitCodeProcess(process.Handle(), |
+ if (!GetExitCodeProcess(process.Get(), |
reinterpret_cast<DWORD*>(exit_code))) { |
PLOG(DFATAL) << "Failed getting the exit code for \"" |
<< cmdline << "\"."; |