If there's no RVH while starting speech request, bail out.
commitc4878c1c1c26c8d4949445ea899d3fcc530c8680
authorlazyboy <lazyboy@chromium.org>
Wed, 15 Oct 2014 00:06:54 +0000 (14 17:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Oct 2014 00:09:46 +0000 (15 00:09 +0000)
tree0c39a8eeb8b2c2bce9ef929fbc9cd088c42f895e
parent37407a705b39f79bf8a4d5c058982f8ef0b58a5c
If there's no RVH while starting speech request, bail out.

SpeechRecognitionDispatcherHost::OnStartRequest() can be called after
the tab that originated the request has been closed.
This early exit will fix accessing NULL RVH.

BUG=417917
Test=See bug description.

Review URL: https://codereview.chromium.org/650583002

Cr-Commit-Position: refs/heads/master@{#299590}
content/browser/speech/speech_recognition_dispatcher_host.cc