DescriptionDon't reset speech_recognition_manager_ in BrowserMainLoop::ShutdownThreadsAndCleanUp()
Instead, let it be reset during the destruction of BrowserMainLoop, which
happens after the IO thread has been shutdown.
This prevents a race condition between ShutdownThreadsAndCleanUp() and the
destructor of InputTagSpeechDispatcherHost. The latter runs on the IO thread,
and could sometimes end up trying to use the SpeechRecognitionManager
at the same time as it was being destructed.
Tested by running WorkerTest.QueuedSharedWorkerShutdown a couple of hundred
times under ASan, as well as running existing speech tests.
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149394
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|