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

Issue 10663018: Changing tab closure handling logic in speech recognition code and cleaning bubble controller. (Spe… (Closed)

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

Description

Changing tab closure handling logic in speech recognition code and cleaning bubble controller. (Speech CL2.6) - Introduced TabWatcher facility class to handle de/registration for tab closure events. - Tab closure is now handled directly in the ChromeSpeechRecognitionManagerDelegate, aborting all sessions for the corresponding renderer. - Cleaned-up SpeechRecognitionBubbleController code: removed support for multiple bubbles (not used anymore) and tab events registration. BUG=116954, 132627 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145586

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Hans review #

Patch Set 3 : Slight refactor to fix a bug on mac + rebase #

Total comments: 16

Patch Set 4 : Satish review + rebase #

Total comments: 38

Patch Set 5 : Satish review #

Patch Set 6 : gfx::Rect forward declaration #

Patch Set 7 : Relaxed thread checks for tests. #

Total comments: 2

Patch Set 8 : Satish Review #

Total comments: 6

Patch Set 9 : jochen review #

Total comments: 8

Patch Set 10 : Moved TabWatcher as a private class in chrome_speech_recognition_manager_delegate.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -281 lines) Patch
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 9 chunks +170 lines, -47 lines 0 comments Download
M chrome/browser/speech/speech_recognition_bubble_controller.h View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -72 lines 0 comments Download
M chrome/browser/speech/speech_recognition_bubble_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +103 lines, -150 lines 0 comments Download
M chrome/browser/speech/speech_recognition_bubble_controller_unittest.cc View 1 2 3 4 chunks +5 lines, -8 lines 0 comments Download
M content/browser/speech/speech_recognition_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M content/public/browser/speech_recognition_manager.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Primiano Tucci (use gerrit)
This CL can be reviewed independently of CL2.4 and CL2.5
8 years, 6 months ago (2012-06-25 13:27:28 UTC) #1
Primiano Tucci (use gerrit)
This CL can be reviewed independently of CL2.4 and CL2.5
8 years, 6 months ago (2012-06-25 13:27:56 UTC) #2
hans
http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h File chrome/browser/speech/chrome_speech_recognition_manager_delegate.h (right): http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h#newcode83 chrome/browser/speech/chrome_speech_recognition_manager_delegate.h:83: // Callback called by |tab_watcher_| on the IO thread ...
8 years, 6 months ago (2012-06-26 13:10:44 UTC) #3
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h File chrome/browser/speech/chrome_speech_recognition_manager_delegate.h (right): http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h#newcode83 chrome/browser/speech/chrome_speech_recognition_manager_delegate.h:83: // Callback called by |tab_watcher_| on the IO thread ...
8 years, 6 months ago (2012-06-26 14:27:07 UTC) #4
hans
On 2012/06/26 14:27:07, Primiano Tucci wrote: > http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h > File chrome/browser/speech/chrome_speech_recognition_manager_delegate.h (right): > > http://codereview.chromium.org/10663018/diff/1001/chrome/browser/speech/chrome_speech_recognition_manager_delegate.h#newcode83 ...
8 years, 6 months ago (2012-06-26 14:29:57 UTC) #5
Satish
Partial review comments below. I found that in http://codereview.chromium.org/3352018 we added the concept of multiple ...
8 years, 5 months ago (2012-07-02 21:44:41 UTC) #6
Primiano Tucci (use gerrit)
I saw that CL, however cannot still understand why, even in case of error, we ...
8 years, 5 months ago (2012-07-03 10:05:02 UTC) #7
Satish
Remaining comments.. https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode125 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:125: { move to previous line https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode129 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:129: ...
8 years, 5 months ago (2012-07-03 15:11:57 UTC) #8
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode125 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:125: { On 2012/07/03 15:11:57, Satish wrote: > move to ...
8 years, 5 months ago (2012-07-03 16:54:35 UTC) #9
Satish
https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode125 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:125: { On 2012/07/03 16:54:35, Primiano Tucci wrote: > On ...
8 years, 5 months ago (2012-07-04 09:52:51 UTC) #10
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10663018/diff/15015/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode125 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:125: { On 2012/07/04 09:52:51, Satish wrote: > On 2012/07/03 ...
8 years, 5 months ago (2012-07-04 11:18:15 UTC) #11
Satish
lgtm
8 years, 5 months ago (2012-07-04 11:20:21 UTC) #12
Primiano Tucci (use gerrit)
+jam@ for owners approval on /content/public
8 years, 5 months ago (2012-07-04 11:22:15 UTC) #13
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10663018/diff/29001/content/browser/speech/speech_recognition_browsertest.cc File content/browser/speech/speech_recognition_browsertest.cc (right): http://codereview.chromium.org/10663018/diff/29001/content/browser/speech/speech_recognition_browsertest.cc#newcode129 content/browser/speech/speech_recognition_browsertest.cc:129: virtual void AbortAllSessionsForWebContent(int, int) { NOTREACHED(); } OVERRIDE missing? ...
8 years, 5 months ago (2012-07-05 07:21:45 UTC) #14
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10663018/diff/29001/content/browser/speech/speech_recognition_browsertest.cc File content/browser/speech/speech_recognition_browsertest.cc (right): http://codereview.chromium.org/10663018/diff/29001/content/browser/speech/speech_recognition_browsertest.cc#newcode129 content/browser/speech/speech_recognition_browsertest.cc:129: virtual void AbortAllSessionsForWebContent(int, int) { NOTREACHED(); } On 2012/07/05 ...
8 years, 5 months ago (2012-07-05 09:25:30 UTC) #15
jam
http://codereview.chromium.org/10663018/diff/16017/chrome/browser/speech/tab_watcher.h File chrome/browser/speech/tab_watcher.h (right): http://codereview.chromium.org/10663018/diff/16017/chrome/browser/speech/tab_watcher.h#newcode27 chrome/browser/speech/tab_watcher.h:27: class TabWatcher this class seems unnecessary, i.e. this functionality ...
8 years, 5 months ago (2012-07-05 17:58:56 UTC) #16
Primiano Tucci (use gerrit)
http://codereview.chromium.org/10663018/diff/16017/chrome/browser/speech/tab_watcher.h File chrome/browser/speech/tab_watcher.h (right): http://codereview.chromium.org/10663018/diff/16017/chrome/browser/speech/tab_watcher.h#newcode27 chrome/browser/speech/tab_watcher.h:27: class TabWatcher On 2012/07/05 17:58:56, John Abd-El-Malek wrote: > ...
8 years, 5 months ago (2012-07-05 21:21:50 UTC) #17
jam
content/public lgtm, two small nits, and a suggestion I hope you'll take to hide the ...
8 years, 5 months ago (2012-07-06 06:58:59 UTC) #18
Primiano Tucci (use gerrit)
https://chromiumcodereview.appspot.com/10663018/diff/16017/chrome/browser/speech/tab_watcher.cc File chrome/browser/speech/tab_watcher.cc (right): https://chromiumcodereview.appspot.com/10663018/diff/16017/chrome/browser/speech/tab_watcher.cc#newcode20 chrome/browser/speech/tab_watcher.cc:20: const int kNotificationType = content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED; On 2012/07/06 06:58:59, John ...
8 years, 5 months ago (2012-07-06 10:36:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/10663018/22009
8 years, 5 months ago (2012-07-06 10:52:38 UTC) #20
commit-bot: I haz the power
8 years, 5 months ago (2012-07-06 12:10:36 UTC) #21
Change committed as 145586

Powered by Google App Engine
This is Rietveld 408576698