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

Issue 17444005: Remove MediaStreamDeviceThread in favor of using AudioThread. (Closed)

Created:
7 years, 6 months ago by DaleCurtis
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Remove MediaStreamDeviceThread in favor of using AudioThread. Doesn't seem to be a good reason for this thread; remove it in favor of using the thread provided by the AudioManager. This also ensures we don't issue CoreAudio calls on a thread other than the main thread for OSX. Bonus: Making this change required converting several unittests to use the new TestBrowserThreadBundle instead of manually creating threads. BUG=158170 TEST=unit tests pass. device changes work. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208403

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add metrics. #

Total comments: 3

Patch Set 3 : Use TestBrowserThreadBundle. #

Patch Set 4 : Fix one more test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -151 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager.cc View 1 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 16 chunks +51 lines, -68 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 4 chunks +7 lines, -15 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 1 2 7 chunks +19 lines, -30 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 11 chunks +27 lines, -33 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 6 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
DaleCurtis
7 years, 6 months ago (2013-06-20 23:02:55 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/17444005/diff/1/content/browser/renderer_host/media/media_stream_manager.h File content/browser/renderer_host/media/media_stream_manager.h (right): https://codereview.chromium.org/17444005/diff/1/content/browser/renderer_host/media/media_stream_manager.h#newcode205 content/browser/renderer_host/media/media_stream_manager.h:205: scoped_refptr<base::MessageLoopProxy> device_loop_; does this thread do device enumeration? I ...
7 years, 6 months ago (2013-06-20 23:39:25 UTC) #2
DaleCurtis
Ah sad, yeah that's a no go for this then as it would mean UI ...
7 years, 6 months ago (2013-06-21 00:37:04 UTC) #3
DaleCurtis
Though that bug says polling will eventually be removed. @xians: is this the case? Do ...
7 years, 6 months ago (2013-06-21 01:03:31 UTC) #4
no longer working on chromium
On 2013/06/21 01:03:31, DaleCurtis wrote: > Though that bug says polling will eventually be removed. ...
7 years, 6 months ago (2013-06-21 12:20:03 UTC) #5
DaleCurtis
This should be okay in most cases then. On OSX this will use the main ...
7 years, 6 months ago (2013-06-21 20:25:37 UTC) #6
no longer working on chromium
https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc#newcode942 content/browser/renderer_host/media/media_stream_manager.cc:942: device_loop_ = NULL; will this work? Previously we join ...
7 years, 6 months ago (2013-06-21 20:44:25 UTC) #7
DaleCurtis
https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc#newcode942 content/browser/renderer_host/media/media_stream_manager.cc:942: device_loop_ = NULL; On 2013/06/21 20:44:25, xians1 wrote: > ...
7 years, 6 months ago (2013-06-21 20:48:15 UTC) #8
DaleCurtis
PTAL. https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/17444005/diff/10001/content/browser/renderer_host/media/media_stream_manager.cc#newcode942 content/browser/renderer_host/media/media_stream_manager.cc:942: device_loop_ = NULL; On 2013/06/21 20:48:15, DaleCurtis wrote: ...
7 years, 6 months ago (2013-06-21 22:15:07 UTC) #9
no longer working on chromium
As discussed offline, I will let you decide if you want to clean up the ...
7 years, 6 months ago (2013-06-24 16:42:44 UTC) #10
DaleCurtis
xians: Regarding our discussion this morning, the OSX docs indicate that calling performSelectorOnMainThread from the ...
7 years, 6 months ago (2013-06-24 20:10:43 UTC) #11
scherkus (not reviewing)
code itself = lgtm / deferring to xians
7 years, 6 months ago (2013-06-24 23:22:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/17444005/28001
7 years, 6 months ago (2013-06-24 23:31:58 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=11998
7 years, 6 months ago (2013-06-24 23:46:04 UTC) #14
DaleCurtis
Whoops +jar for lgtm on histograms.xml
7 years, 6 months ago (2013-06-24 23:49:14 UTC) #15
jar (doing other things)
histogtrams.xml LGTM
7 years, 6 months ago (2013-06-25 00:08:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/17444005/28001
7 years, 6 months ago (2013-06-25 00:15:21 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 04:31:28 UTC) #18
Message was sent while issue was closed.
Change committed as 208403

Powered by Google App Engine
This is Rietveld 408576698