Really fix ServiceProcessHost lifetime monitoring
r680551 landed a partial fix which corrected the issue specifically for single-process mode, but the more general bug is that a UtilityProcessHost can still call UtilityProcessHost::Client::OnProcessTerminatedNormally() even if a process was never launched. This fixes the bug in all cases by ensuring that |launch_state_| is |kLaunchComplete| before invoking OnProcessTerminatedNormally(). This state is only set once process launch has successfully completed. Bug: 987448 Change-Id: I5c419cdb16b8f8b67058fdad0385b499552354e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1733011Reviewed-by:Avi Drissman <avi@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#683659}
Showing
Please register or sign in to comment