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

Issue 10440011: SpeechInputExtensionManager now interface (exclusively) with SpeechRecognitionManagerDelegate (Spee… (Closed)

Created:
8 years, 7 months ago by Primiano Tucci (use gerrit)
Modified:
8 years, 7 months ago
Reviewers:
hans, Satish
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jochen+watch-content_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, Satish, darin-cc_chromium.org
Visibility:
Public.

Description

SpeechInputExtensionManager now interface (exclusively) with SpeechRecognitionManagerDelegate (Speech CL1.11) This is a re-submit of r138498 which was reverted in r138568. Fixes introduced by this CL: - Added a check on speech_input_extensions_manager shutdown to assert that the speech_recognition_manager has not been unexpectedly destroyed (happens in some tests). - Added WeakPtr to speech_recognition_manager_impl so that it can be destroyed ungracefully without crashing. Original CL description: - The tray icon and balloon handing has been moved from speech_input_extensions_manager to chrome_speech_recognition_manager_delegate, since that code (tray icon) will be used also for continuous recognition. - Removed the SpeechRecognizer interface from /content/public (thus de-virtualized and refcounted the SpeechRecognizerImpl) BUG=116954, 129408 TEST=browser_tests on Linux ChromiumOS (dbg) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138765

Patch Set 1 : Original (reverted) CL untouched #

Patch Set 2 : Fix for dealing with tests destroying profile out of order. #

Total comments: 4

Patch Set 3 : Satish review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -281 lines) Patch
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc View 12 chunks +101 lines, -29 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_apitest.cc View 7 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.h View 1 2 5 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.cc View 1 2 23 chunks +121 lines, -87 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 10 chunks +17 lines, -13 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.h View 4 chunks +10 lines, -14 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 3 chunks +0 lines, -37 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/speech_recognition_session_context.h View 2 chunks +21 lines, -6 lines 0 comments Download
A content/public/browser/speech_recognition_session_context.cc View 1 chunk +20 lines, -0 lines 0 comments Download
D content/public/browser/speech_recognizer.h View 1 chunk +0 lines, -66 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Primiano Tucci (use gerrit)
8 years, 7 months ago (2012-05-24 09:35:33 UTC) #1
Satish
lgtm with nits http://codereview.chromium.org/10440011/diff/3001/chrome/browser/speech/speech_input_extension_manager.cc File chrome/browser/speech/speech_input_extension_manager.cc (right): http://codereview.chromium.org/10440011/diff/3001/chrome/browser/speech/speech_input_extension_manager.cc#newcode214 chrome/browser/speech/speech_input_extension_manager.cc:214: void SpeechInputExtensionManager::UnregisterFromManagerOnIOThread() { UnregisterFromManager is a ...
8 years, 7 months ago (2012-05-24 09:50:44 UTC) #2
hans
lgtm, but please update the CL description to highlight the differences between this and the ...
8 years, 7 months ago (2012-05-24 09:57:08 UTC) #3
Primiano Tucci (use gerrit)
8 years, 7 months ago (2012-05-24 10:14:06 UTC) #4
http://codereview.chromium.org/10440011/diff/3001/chrome/browser/speech/speec...
File chrome/browser/speech/speech_input_extension_manager.cc (right):

http://codereview.chromium.org/10440011/diff/3001/chrome/browser/speech/speec...
chrome/browser/speech/speech_input_extension_manager.cc:214: void
SpeechInputExtensionManager::UnregisterFromManagerOnIOThread() {
On 2012/05/24 09:50:44, Satish wrote:
> UnregisterFromManager is a bit confusing since this class is also named as a
> Manager :) Can we rename this to AbortAllSessionsInIOThread ?
Uh right. Done

http://codereview.chromium.org/10440011/diff/3001/chrome/browser/speech/speec...
chrome/browser/speech/speech_input_extension_manager.cc:220: // envisaged by
browser_main_loop, causing a crash on this line.
On 2012/05/24 09:50:44, Satish wrote:
> 'causing a crash on this line' -> 'so SpeechRecognitionmanager could have been
> freed by now'

Done.

Powered by Google App Engine
This is Rietveld 408576698