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

Issue 6358007: Cancel any pending speech recognitions when the dispatcher host terminates. (Closed)

Created:
9 years, 11 months ago by Satish
Modified:
9 years, 7 months ago
Reviewers:
bulach
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Cancel any pending speech recognitions when the dispatcher host terminates. I have not added a new test for this because the existing test is flaky and didn't seem right to add another flaky test like that. Instead I've added a TODO to add a browser test for this case once the flaky test has been fixed. BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71956

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -11 lines) Patch
M chrome/browser/speech/speech_input_browsertest.cc View 1 2 3 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/speech/speech_input_dispatcher_host.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/speech/speech_input_dispatcher_host.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/speech/speech_input_manager.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/speech/speech_input_manager.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Satish
9 years, 11 months ago (2011-01-20 13:31:20 UTC) #1
bulach
LGTM one suggestion below. also, I'd suggest changing the title "Cancel all ongoing recognitions when ...
9 years, 11 months ago (2011-01-20 14:47:20 UTC) #2
Satish
9 years, 11 months ago (2011-01-20 15:09:03 UTC) #3
Thanks for the quick review. Addressed both comments, will submit shortly.

http://codereview.chromium.org/6358007/diff/1/chrome/browser/speech/speech_in...
File chrome/browser/speech/speech_input_browsertest.cc (right):

http://codereview.chromium.org/6358007/diff/1/chrome/browser/speech/speech_in...
chrome/browser/speech/speech_input_browsertest.cc:176: // the a renderer
crashes, we get a call to
On 2011/01/20 14:47:20, bulach wrote:
> s/the //

Done.

http://codereview.chromium.org/6358007/diff/3001/chrome/browser/speech/speech...
File chrome/browser/speech/speech_input_dispatcher_host.cc (right):

http://codereview.chromium.org/6358007/diff/3001/chrome/browser/speech/speech...
chrome/browser/speech/speech_input_dispatcher_host.cc:121: if
(received_speech_request_)
On 2011/01/20 14:47:20, bulach wrote:
> suggest: may_have_pending_requests_ ?
> it seems slightly better:
> 
> if (may_have_pending_requests_)
>   manager()->CancelAllRequestsWithDelegate(this);

Done.

Powered by Google App Engine
This is Rietveld 408576698