Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1973)

Issue 10836007: Don't reset speech_recognition_manager_ in BrowserMainLoop::ShutdownThreadsAndCleanUp() (Closed)

Created:
8 years, 4 months ago by hans
Modified:
8 years, 4 months ago
Reviewers:
Satish, jam, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Don'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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M content/browser/browser_main_loop.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
hans
satish: can you take a look? sky: presubmit suggested you as OWNERS reviewer jam: fyi
8 years, 4 months ago (2012-07-30 12:31:38 UTC) #1
hans
-simonjam +satish
8 years, 4 months ago (2012-07-30 12:32:19 UTC) #2
Satish
lgtm
8 years, 4 months ago (2012-07-30 14:48:52 UTC) #3
jam
lgtm
8 years, 4 months ago (2012-07-30 15:21:43 UTC) #4
hans
sky: ping?
8 years, 4 months ago (2012-07-31 10:28:53 UTC) #5
sky
LGTM. John's LGTM was actually enough, you don't need the both of us.
8 years, 4 months ago (2012-07-31 19:03:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hans@chromium.org/10836007/1
8 years, 4 months ago (2012-08-01 08:32:53 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 09:56:39 UTC) #8
Change committed as 149394

Powered by Google App Engine
This is Rietveld 408576698