Always destroy SpeechRecognitionDispatcherHost on IO thread.
commit63b390d81aa08c4c490522cc7aefbd282fb33bc7
authorlazyboy <lazyboy@chromium.org>
Thu, 23 Oct 2014 21:26:28 +0000 (23 14:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Oct 2014 21:26:55 +0000 (23 21:26 +0000)
treec5bcf9ad2f53bb2a3caa723c0632624976afb7d2
parent3a4655902ccd3ee637da0da57afc44fb9cd63a48
Always destroy SpeechRecognitionDispatcherHost on IO thread.

SRDH can be destroyed from ~PendingTask on mac (non-IO)
Deleting SRDH on non-IO results in a DCHECK failure while calling:
SpeechRecognitionManagerImpl::AbortAllSessionsForRenderProcess().

BUG=426495
Test=See bug description for repro, requires a debug build (or DCHECK enabled somehow).

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

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