summaryrefslogtreecommitdiffstats
path: root/content/browser/speech/speech_input_dispatcher_host.cc
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-18 20:45:10 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-18 20:45:10 +0000
commit462cd92d06aae4a9606cd50a984914c447de66e3 (patch)
treef78e049d14d6a93ca7daa78a331d3cbed638cc30 /content/browser/speech/speech_input_dispatcher_host.cc
parent4060cbbae6ba9400635730cba4794ad38cafba03 (diff)
downloadchromium_src-462cd92d06aae4a9606cd50a984914c447de66e3.zip
chromium_src-462cd92d06aae4a9606cd50a984914c447de66e3.tar.gz
chromium_src-462cd92d06aae4a9606cd50a984914c447de66e3.tar.bz2
Close ongoing speech input sessions when a tab terminates.
This was working before but in r76893 a line from speech_input_dispatcher_host.cc was removed by mistake. BUG=76589 TEST=browser_tests --gtest_filter=SpeechInputBrowserTest.TestCancelAll Review URL: http://codereview.chromium.org/6712034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_input_dispatcher_host.cc')
-rw-r--r--content/browser/speech/speech_input_dispatcher_host.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/speech/speech_input_dispatcher_host.cc b/content/browser/speech/speech_input_dispatcher_host.cc
index b589e3b..d286111 100644
--- a/content/browser/speech/speech_input_dispatcher_host.cc
+++ b/content/browser/speech/speech_input_dispatcher_host.cc
@@ -140,6 +140,8 @@ bool SpeechInputDispatcherHost::OnMessageReceived(
OnStopRecording)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
+ if (handled)
+ may_have_pending_requests_ = true;
return handled;
}