Index: win8/delegate_execute/command_execute_impl.cc |
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc |
index f52037b743bf44de272fce386ceb8e606d754735..5f6cc190d6b76481aee0ec714fc2a2b2ebc1065f 100644 |
--- a/win8/delegate_execute/command_execute_impl.cc |
+++ b/win8/delegate_execute/command_execute_impl.cc |
@@ -487,13 +487,12 @@ |
AtlTrace("Formatted command line is %ls\n", command_line.c_str()); |
- PROCESS_INFORMATION temp_process_info = {}; |
+ base::win::ScopedProcessInformation proc_info; |
BOOL ret = CreateProcess(chrome_exe_.value().c_str(), |
const_cast<LPWSTR>(command_line.c_str()), |
NULL, NULL, FALSE, 0, NULL, NULL, &start_info_, |
- &temp_process_info); |
+ proc_info.Receive()); |
if (ret) { |
- base::win::ScopedProcessInformation proc_info(temp_process_info); |
AtlTrace("Process id is %d\n", proc_info.process_id()); |
AllowSetForegroundWindow(proc_info.process_id()); |
} else { |