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

Issue 6115001: Listen for tab close notifications and cancel active speech sessions. (Closed)

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

Description

Listen for tab close notifications and cancel active speech sessions. BUG=none TEST=Start speech input and close tab with keyboard before the UI comes up, check for crashes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70733

Patch Set 1 #

Total comments: 8

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Fixed tests #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -59 lines) Patch
M chrome/browser/speech/speech_input_bubble.h View 1 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/speech/speech_input_bubble.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_controller.h View 1 2 6 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_controller.cc View 1 4 chunks +62 lines, -1 line 0 comments Download
M chrome/browser/speech/speech_input_bubble_controller_unittest.cc View 1 2 3 5 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_gtk.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_mac.mm View 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_views.cc View 1 2 8 chunks +5 lines, -32 lines 0 comments Download
M chrome/browser/speech/speech_input_manager.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Satish
9 years, 11 months ago (2011-01-06 11:51:48 UTC) #1
hans
Looks good except for the comment nits below and try bot redness. http://codereview.chromium.org/6115001/diff/1/chrome/browser/speech/speech_input_bubble_controller.cc File chrome/browser/speech/speech_input_bubble_controller.cc ...
9 years, 11 months ago (2011-01-06 12:30:54 UTC) #2
bulach
LG, nice refactoring! one suggestion below as we chatted, and the bots don't look too ...
9 years, 11 months ago (2011-01-06 12:32:39 UTC) #3
Satish
All comments addressed (except one, replied below) and latest uploaded. Please have a look. http://codereview.chromium.org/6115001/diff/1/chrome/browser/speech/speech_input_bubble_controller.h ...
9 years, 11 months ago (2011-01-06 12:57:02 UTC) #4
hans
On 2011/01/06 12:57:02, Satish wrote: > All comments addressed (except one, replied below) and latest ...
9 years, 11 months ago (2011-01-06 14:28:05 UTC) #5
bulach
LGTM nit below: http://codereview.chromium.org/6115001/diff/8001/chrome/browser/speech/speech_input_bubble_controller.h File chrome/browser/speech/speech_input_bubble_controller.h (right): http://codereview.chromium.org/6115001/diff/8001/chrome/browser/speech/speech_input_bubble_controller.h#newcode118 chrome/browser/speech/speech_input_bubble_controller.h:118: bool IsOnlyBubbleForTab(int caller_id); remove?
9 years, 11 months ago (2011-01-06 14:31:44 UTC) #6
Satish
I have now fixed the failing unittest. It required making the test derive from the ...
9 years, 11 months ago (2011-01-07 10:57:34 UTC) #7
bulach
one question below: http://codereview.chromium.org/6115001/diff/16001/chrome/browser/speech/speech_input_bubble_controller_unittest.cc File chrome/browser/speech/speech_input_bubble_controller_unittest.cc (right): http://codereview.chromium.org/6115001/diff/16001/chrome/browser/speech/speech_input_bubble_controller_unittest.cc#newcode79 chrome/browser/speech/speech_input_bubble_controller_unittest.cc:79: bubble_callback_event_(false, false), I'm not very familiar, ...
9 years, 11 months ago (2011-01-07 11:11:28 UTC) #8
Satish
http://codereview.chromium.org/6115001/diff/16001/chrome/browser/speech/speech_input_bubble_controller_unittest.cc File chrome/browser/speech/speech_input_bubble_controller_unittest.cc (right): http://codereview.chromium.org/6115001/diff/16001/chrome/browser/speech/speech_input_bubble_controller_unittest.cc#newcode79 chrome/browser/speech/speech_input_bubble_controller_unittest.cc:79: bubble_callback_event_(false, false), On 2011/01/07 11:11:29, bulach wrote: > I'm ...
9 years, 11 months ago (2011-01-07 11:19:15 UTC) #9
bulach
LGTM great, thanks!
9 years, 11 months ago (2011-01-07 11:21:32 UTC) #10
hans
9 years, 11 months ago (2011-01-07 11:45:08 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698