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

Issue 415433002: Turn webspeech on/off when tab goes fore/background (Closed)

Created:
6 years, 5 months ago by qinmin
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Turn webspeech off when tab goes background This change adds a toggle to turn webspeech off when tab goes background. And further request to turn media capture devices on will be denied. So Both WebRTC and webSpeech won't be able to initiate new requests when tab is in background. BUG=396054 R=dalecurtis@chromium.org, jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285072

Patch Set 1 #

Patch Set 2 : fix the issue for webrtc #

Total comments: 4

Patch Set 3 : adding a TODO for test #

Total comments: 2

Patch Set 4 : nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -2 lines) Patch
M chrome/browser/media/media_stream_devices_controller.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +1 line, -0 lines 1 comment Download
M content/renderer/speech_recognition_dispatcher.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/speech_recognition_dispatcher.cc View 1 2 3 1 chunk +9 lines, -0 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
qinmin
PTAL, please prioritize this, thanks
6 years, 5 months ago (2014-07-23 02:17:43 UTC) #1
juberti2
On 2014/07/23 02:17:43, qinmin wrote: > PTAL, please prioritize this, thanks Shijing is in a ...
6 years, 5 months ago (2014-07-23 03:01:43 UTC) #2
no longer working on chromium
Lets continue our discussion in the bug thread before we get into the review details, ...
6 years, 5 months ago (2014-07-23 09:38:37 UTC) #3
qinmin
Reviewers/OWNERs, this CL is now ready for review. It addresses both the issue in webrtc ...
6 years, 5 months ago (2014-07-23 22:08:46 UTC) #4
DaleCurtis
media/ lgtm https://codereview.chromium.org/415433002/diff/20001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (left): https://codereview.chromium.org/415433002/diff/20001/chrome/browser/media/media_stream_devices_controller.cc#oldcode31 chrome/browser/media/media_stream_devices_controller.cc:31: Line break is normally kept here. https://codereview.chromium.org/415433002/diff/20001/chrome/browser/media/media_stream_devices_controller.cc ...
6 years, 5 months ago (2014-07-23 22:17:19 UTC) #5
DaleCurtis
Is it possible to write a test for this in a follow up CL?
6 years, 5 months ago (2014-07-23 22:18:43 UTC) #6
qinmin
Added a TODO for a follow up test. http://crbug.com/396869 https://codereview.chromium.org/415433002/diff/20001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (left): https://codereview.chromium.org/415433002/diff/20001/chrome/browser/media/media_stream_devices_controller.cc#oldcode31 chrome/browser/media/media_stream_devices_controller.cc:31: ...
6 years, 5 months ago (2014-07-23 22:28:49 UTC) #7
jam
content lgtm https://codereview.chromium.org/415433002/diff/40001/content/renderer/speech_recognition_dispatcher.cc File content/renderer/speech_recognition_dispatcher.cc (right): https://codereview.chromium.org/415433002/diff/40001/content/renderer/speech_recognition_dispatcher.cc#newcode70 content/renderer/speech_recognition_dispatcher.cc:70: nit: here and below, don't change
6 years, 5 months ago (2014-07-23 22:32:44 UTC) #8
qinmin
https://codereview.chromium.org/415433002/diff/40001/content/renderer/speech_recognition_dispatcher.cc File content/renderer/speech_recognition_dispatcher.cc (right): https://codereview.chromium.org/415433002/diff/40001/content/renderer/speech_recognition_dispatcher.cc#newcode70 content/renderer/speech_recognition_dispatcher.cc:70: On 2014/07/23 22:32:44, jam wrote: > nit: here and ...
6 years, 5 months ago (2014-07-23 22:35:57 UTC) #9
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 5 months ago (2014-07-23 22:36:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/415433002/60001
6 years, 5 months ago (2014-07-23 22:40:08 UTC) #11
qinmin
Committed patchset #4 manually as r285072 (presubmit successful).
6 years, 5 months ago (2014-07-23 23:06:25 UTC) #12
no longer working on chromium
Min, please look at my comment about speech_recognition_dispatcher_ in render_view_impl.c https://codereview.chromium.org/415433002/diff/60001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/415433002/diff/60001/content/renderer/render_view_impl.cc#newcode3567 ...
6 years, 5 months ago (2014-07-24 11:00:29 UTC) #13
johnme
6 years, 5 months ago (2014-07-24 12:25:53 UTC) #14
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/416053002/ by johnme@chromium.org.

The reason for reverting is: Tentatively reverting because [1] has been
consistently crashing in 2 layout tests ever since this landed[2], and this is
the more likely looking of the two CLs on the blamelist:

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog.html?url=%2F...

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?u...

[1]:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Ne...

[2]:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Ne....

Powered by Google App Engine
This is Rietveld 408576698