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

Issue 10933018: Speech JavaScript API: Use the MediaStreamManager to ask for user permission. (Closed)

Created:
8 years, 3 months ago by hans
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Speech JavaScript API: Use the MediaStreamManager to ask for user permission. BUG=132965 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156615

Patch Set 1 #

Total comments: 23

Patch Set 2 : Addressing Satish's comments #

Total comments: 10

Patch Set 3 : Address xians's comments #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Remove media_stream_manager_ #

Total comments: 8

Patch Set 6 : Address nits from xians #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -74 lines) Patch
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc View 1 2 4 chunks +39 lines, -29 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 6 chunks +18 lines, -9 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 5 12 chunks +146 lines, -22 lines 0 comments Download
M content/browser/speech/speech_recognizer.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M content/public/browser/speech_recognition_manager_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/speech_recognition_error.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/speech_recognition_dispatcher.cc View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
hans
Here's a new patch for asking for user's permission for the JS speech API. The ...
8 years, 3 months ago (2012-09-11 11:30:45 UTC) #1
hans
tommyw: Perhaps you can take a look to see if this makes sense from a ...
8 years, 3 months ago (2012-09-11 18:10:51 UTC) #2
Satish
Good start! https://chromiumcodereview.appspot.com/10933018/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode570 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:570: void ChromeSpeechRecognitionManagerDelegate::CheckRenderViewTypeForTrayIcon( there is a lot of ...
8 years, 3 months ago (2012-09-12 06:15:09 UTC) #3
Tommy Widenflycht
My chromium-fu is low but I added some relevant people as reviewers.
8 years, 3 months ago (2012-09-12 07:38:10 UTC) #4
hans
Thanks for the review! New patch uploaded. https://chromiumcodereview.appspot.com/10933018/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode570 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:570: void ChromeSpeechRecognitionManagerDelegate::CheckRenderViewTypeForTrayIcon( ...
8 years, 3 months ago (2012-09-12 09:46:58 UTC) #5
no longer working on chromium
Nice work, it looks really good. https://chromiumcodereview.appspot.com/10933018/diff/10002/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/10002/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode486 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:486: session_id, It looks ...
8 years, 3 months ago (2012-09-12 11:29:49 UTC) #6
hans
Thank you very much for the review! New patch uploaded. https://chromiumcodereview.appspot.com/10933018/diff/10002/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/10002/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode486 ...
8 years, 3 months ago (2012-09-12 12:32:21 UTC) #7
Satish
https://chromiumcodereview.appspot.com/10933018/diff/1/content/browser/speech/speech_recognition_manager_impl.cc File content/browser/speech/speech_recognition_manager_impl.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/1/content/browser/speech/speech_recognition_manager_impl.cc#newcode611 content/browser/speech/speech_recognition_manager_impl.cc:611: media_stream_manager_->GenerateStream( On 2012/09/12 09:46:58, hans wrote: > On 2012/09/12 ...
8 years, 3 months ago (2012-09-12 13:51:38 UTC) #8
no longer working on chromium
On Wed, Sep 12, 2012 at 3:51 PM, <satish@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/10933018/diff/1/** > content/browser/speech/speech_**recognition_manager_impl.cc<https://chromiumcodereview.appspot.com/10933018/diff/1/content/browser/speech/speech_recognition_manager_impl.cc> ...
8 years, 3 months ago (2012-09-12 20:36:37 UTC) #9
Satish
Hans can probably tell more authoritatively, but I think #1 is more useful for us ...
8 years, 3 months ago (2012-09-12 21:53:30 UTC) #10
wjia(left Chromium)
https://chromiumcodereview.appspot.com/10933018/diff/4002/content/browser/speech/speech_recognition_manager_impl.cc File content/browser/speech/speech_recognition_manager_impl.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/4002/content/browser/speech/speech_recognition_manager_impl.cc#newcode97 content/browser/speech/speech_recognition_manager_impl.cc:97: BrowserThread::PostTask( StreamGenerated is called on IO thread. Do you ...
8 years, 3 months ago (2012-09-12 22:58:25 UTC) #11
hans
On 2012/09/12 22:58:25, wjia wrote: > content/browser/speech/speech_recognition_manager_impl.cc:97: > BrowserThread::PostTask( > StreamGenerated is called on IO ...
8 years, 3 months ago (2012-09-13 12:53:48 UTC) #12
Satish
On 2012/09/13 12:53:48, hans wrote: > On 2012/09/12 22:58:25, wjia wrote: > > content/browser/speech/speech_recognition_manager_impl.cc:97: > ...
8 years, 3 months ago (2012-09-13 14:28:19 UTC) #13
hans
On 2012/09/13 14:28:19, Satish wrote: > On 2012/09/13 12:53:48, hans wrote: > > On 2012/09/12 ...
8 years, 3 months ago (2012-09-13 14:33:36 UTC) #14
no longer working on chromium
On 2012/09/13 14:33:36, hans wrote: > On 2012/09/13 14:28:19, Satish wrote: > > On 2012/09/13 ...
8 years, 3 months ago (2012-09-13 15:10:55 UTC) #15
no longer working on chromium
https://chromiumcodereview.appspot.com/10933018/diff/1010/content/browser/speech/speech_recognition_manager_impl.cc File content/browser/speech/speech_recognition_manager_impl.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/1010/content/browser/speech/speech_recognition_manager_impl.cc#newcode69 content/browser/speech/speech_recognition_manager_impl.cc:69: void Start(int render_process_id, int render_view_id, const GURL& origin) { ...
8 years, 3 months ago (2012-09-13 15:11:01 UTC) #16
hans
Thank you very much! Nits fixed and new patch uploaded. https://chromiumcodereview.appspot.com/10933018/diff/1010/content/browser/speech/speech_recognition_manager_impl.cc File content/browser/speech/speech_recognition_manager_impl.cc (right): https://chromiumcodereview.appspot.com/10933018/diff/1010/content/browser/speech/speech_recognition_manager_impl.cc#newcode69 ...
8 years, 3 months ago (2012-09-13 15:15:52 UTC) #17
hans
piman: can you do OWNER review for content/public, content/public/browser, and content/renderer
8 years, 3 months ago (2012-09-13 15:17:35 UTC) #18
piman
lgtm
8 years, 3 months ago (2012-09-13 17:18:10 UTC) #19
wjia(left Chromium)
Thanks! LGTM.
8 years, 3 months ago (2012-09-13 17:47:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hans@chromium.org/10933018/1011
8 years, 3 months ago (2012-09-13 18:06:08 UTC) #21
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 20:14:45 UTC) #22
Change committed as 156615

Powered by Google App Engine
This is Rietveld 408576698