• Ken Rockot's avatar
    Fix dropped callback in SpellCheckHostChromeImpl · f8d12991
    Ken Rockot authored
    r683358 introduced a bug where in a SpellCheckHost.CallSpellingService
    message response callback may be dropped without being called whenever
    the source render process has been terminated. That can result in a
    DCHECK being hit in testing environments but is otherwise harmless.
    
    This CL fixes the issue by ensuring that the response callback gets
    called in the case where the process has been terminated.
    
    Bug: 977637
    Change-Id: I6d815be3cad8199c7f8bef27ac10f322b217f881
    Tbr: thestig@chromium.org
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732678Reviewed-by: default avatarKen Rockot <rockot@google.com>
    Commit-Queue: Ken Rockot <rockot@google.com>
    Cr-Commit-Position: refs/heads/master@{#683506}
    f8d12991
spell_check_host_chrome_impl.cc 8.07 KB