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

Issue 10399025: Moved instantiation of SpeechRecognitionManager inside browser_main_loop, instead of Singleton. (Closed)

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

Description

Moved instantiation of SpeechRecognitionManager inside browser_main_loop, instead of Singleton. (Speech CL1.10) Compared to the Singleton solution, this allows the SpeechRecognitionManager to instantiate and cleanup the delegate at the right time. Also, cleaned-up speech_recognition_browsertest.cc so that the FakeSpeechRecognitionManager extends only the SRM interface, and not the Impl class. BUG=116954 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137424

Patch Set 1 #

Patch Set 2 : Fixed FakeSpeechRecognitionManager. #

Total comments: 8

Patch Set 3 : Fixed according to Hans review + nits. #

Total comments: 7

Patch Set 4 : jam@ review + rebase #

Patch Set 5 : Fixed build issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -40 lines) Patch
M content/browser/browser_main_loop.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/speech/input_tag_speech_dispatcher_host.h View 1 2 3 4 chunks +4 lines, -5 lines 0 comments Download
M content/browser/speech/input_tag_speech_dispatcher_host.cc View 1 2 3 6 chunks +12 lines, -11 lines 0 comments Download
M content/browser/speech/speech_recognition_browsertest.cc View 1 2 3 8 chunks +15 lines, -5 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 3 6 chunks +8 lines, -5 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 5 chunks +16 lines, -9 lines 0 comments Download
M content/public/browser/speech_recognition_session_config.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M content/public/browser/speech_recognition_session_config.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Primiano Tucci (use gerrit)
8 years, 7 months ago (2012-05-15 10:51:09 UTC) #1
hans
http://codereview.chromium.org/10399025/diff/3019/content/browser/speech/input_tag_speech_dispatcher_host.cc File content/browser/speech/input_tag_speech_dispatcher_host.cc (right): http://codereview.chromium.org/10399025/diff/3019/content/browser/speech/input_tag_speech_dispatcher_host.cc#newcode32 content/browser/speech/input_tag_speech_dispatcher_host.cc:32: content::SpeechRecognitionManager* a "using content::SpeechRecognitionManager" at the top would be ...
8 years, 7 months ago (2012-05-15 15:32:31 UTC) #2
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10399025/diff/3019/content/browser/speech/input_tag_speech_dispatcher_host.cc File content/browser/speech/input_tag_speech_dispatcher_host.cc (right): http://codereview.chromium.org/10399025/diff/3019/content/browser/speech/input_tag_speech_dispatcher_host.cc#newcode32 content/browser/speech/input_tag_speech_dispatcher_host.cc:32: content::SpeechRecognitionManager* On 2012/05/15 15:32:31, hans wrote: > a "using ...
8 years, 7 months ago (2012-05-15 16:04:03 UTC) #3
jam
http://codereview.chromium.org/10399025/diff/14001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): http://codereview.chromium.org/10399025/diff/14001/content/browser/browser_main_loop.cc#newcode484 content/browser/browser_main_loop.cc:484: // Cleanup the speech recognition manager. nit: this comment ...
8 years, 7 months ago (2012-05-15 16:38:31 UTC) #4
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/browser_main_loop.cc#newcode484 content/browser/browser_main_loop.cc:484: // Cleanup the speech recognition manager. On 2012/05/15 16:38:31, ...
8 years, 7 months ago (2012-05-15 17:17:12 UTC) #5
jam
lgtm https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h File content/browser/speech/input_tag_speech_dispatcher_host.h (right): https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h#newcode58 content/browser/speech/input_tag_speech_dispatcher_host.h:58: static void set_manager_for_tests(content::SpeechRecognitionManager* manager); On 2012/05/15 17:17:12, Primiano ...
8 years, 7 months ago (2012-05-15 17:20:47 UTC) #6
jam
https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h File content/browser/speech/input_tag_speech_dispatcher_host.h (right): https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h#newcode58 content/browser/speech/input_tag_speech_dispatcher_host.h:58: static void set_manager_for_tests(content::SpeechRecognitionManager* manager); On 2012/05/15 17:20:47, John Abd-El-Malek ...
8 years, 7 months ago (2012-05-15 17:26:56 UTC) #7
Primiano Tucci (use gerrit)
On 2012/05/15 17:26:56, John Abd-El-Malek wrote: > https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h > File content/browser/speech/input_tag_speech_dispatcher_host.h (right): > > https://chromiumcodereview.appspot.com/10399025/diff/14001/content/browser/speech/input_tag_speech_dispatcher_host.h#newcode58 ...
8 years, 7 months ago (2012-05-15 18:26:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10399025/9006
8 years, 7 months ago (2012-05-16 10:34:22 UTC) #9
hans
lgtm
8 years, 7 months ago (2012-05-16 11:14:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10399025/9008
8 years, 7 months ago (2012-05-16 13:20:27 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-16 14:51:45 UTC) #12
Change committed as 137424

Powered by Google App Engine
This is Rietveld 408576698