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

Issue 133903004: Cleaned up the WebRtcAudioCapturer a bit. (Closed)

Created:
6 years, 11 months ago by no longer working on chromium
Modified:
6 years, 11 months ago
CC:
ajm, chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Cleaned up the WebRtcAudioCapturer a bit. This CL cleaned up the capturer a bit by moving the initialize() method to private and do NOT allow re-initializing the capturer when a new getUserMedia is called. Instead, it creates a new capturer for each getUserMedia. BUG=333285 TEST=content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245205

Patch Set 1 #

Patch Set 2 : removed the debugging DLOG. #

Total comments: 21

Patch Set 3 : addressed Per's comments. #

Total comments: 8

Patch Set 4 : addressed the comments #

Total comments: 9

Patch Set 5 : used track.id().utf8() and fixed the bots #

Total comments: 2

Patch Set 6 : added a comment and content_browsertest #

Total comments: 2

Patch Set 7 : rebased and fixed the comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -322 lines) Patch
M content/browser/media/webrtc_browsertest.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 4 chunks +7 lines, -41 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 5 2 chunks +11 lines, -7 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 2 3 4 5 6 11 chunks +49 lines, -52 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 8 chunks +94 lines, -84 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -9 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 3 2 chunks +18 lines, -7 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 3 4 5 6 1 chunk +31 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 5 6 9 chunks +30 lines, -33 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 1 2 3 4 5 6 5 chunks +26 lines, -58 lines 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 3 4 5 6 2 chunks +52 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
no longer working on chromium
Guys, this is a CL to do some clean-up on the existing code. This should ...
6 years, 11 months ago (2014-01-10 16:45:06 UTC) #1
perkj_chrome
https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/media_stream_dependency_factory.cc#newcode308 content/renderer/media/media_stream_dependency_factory.cc:308: continue; indentation https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/media_stream_dependency_factory.cc#newcode458 content/renderer/media/media_stream_dependency_factory.cc:458: // TODO(xians): Check with perkj ...
6 years, 11 months ago (2014-01-12 21:53:05 UTC) #2
no longer working on chromium
PTAL, thanks. https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/media_stream_dependency_factory.cc#newcode308 content/renderer/media/media_stream_dependency_factory.cc:308: continue; On 2014/01/12 21:53:06, perkj wrote: > ...
6 years, 11 months ago (2014-01-13 16:59:59 UTC) #3
perkj_chrome
https://codereview.chromium.org/133903004/diff/110001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/133903004/diff/110001/content/renderer/media/media_stream_impl.cc#newcode736 content/renderer/media/media_stream_impl.cc:736: WebRtcAudioDeviceImpl* audio_device = What is the lifetime of audio_device? ...
6 years, 11 months ago (2014-01-14 08:42:40 UTC) #4
Jói
Sorry to be late to this party, I started reviewing this on Saturday but wanted ...
6 years, 11 months ago (2014-01-14 09:16:36 UTC) #5
no longer working on chromium
PTAL, thanks. SX https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/webrtc_audio_capturer.h File content/renderer/media/webrtc_audio_capturer.h (right): https://codereview.chromium.org/133903004/diff/30001/content/renderer/media/webrtc_audio_capturer.h#newcode42 content/renderer/media/webrtc_audio_capturer.h:42: // Used to construct the audio ...
6 years, 11 months ago (2014-01-14 11:10:20 UTC) #6
Jói
LGTM, please wait for Per's sign-off.
6 years, 11 months ago (2014-01-14 12:29:25 UTC) #7
perkj_chrome
I think this looks good. But please fix the tests that chrash due to this ...
6 years, 11 months ago (2014-01-14 12:53:54 UTC) #8
no longer working on chromium
Per, PTAL, thanks. SX https://codereview.chromium.org/133903004/diff/280001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/133903004/diff/280001/content/renderer/media/media_stream_dependency_factory.cc#newcode466 content/renderer/media/media_stream_dependency_factory.cc:466: CreateLocalAudioTrack(base::UTF16ToUTF8(track.id()), On 2014/01/14 12:53:55, perkj ...
6 years, 11 months ago (2014-01-14 14:10:56 UTC) #9
perkj_chrome
lgtm https://codereview.chromium.org/133903004/diff/280001/content/renderer/media/webrtc_audio_device_impl.cc File content/renderer/media/webrtc_audio_device_impl.cc (right): https://codereview.chromium.org/133903004/diff/280001/content/renderer/media/webrtc_audio_device_impl.cc#newcode460 content/renderer/media/webrtc_audio_device_impl.cc:460: for (CapturerList::const_reverse_iterator iter = capturers_.rbegin(); On 2014/01/14 14:10:56, ...
6 years, 11 months ago (2014-01-14 20:27:31 UTC) #10
no longer working on chromium
Thanks Per. Patrik, could you please take a look at change in the browser test ...
6 years, 11 months ago (2014-01-15 18:31:03 UTC) #11
phoglund_chromium
lgtm, one nit https://codereview.chromium.org/133903004/diff/540002/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/133903004/diff/540002/content/test/data/media/getusermedia.html#newcode68 content/test/data/media/getusermedia.html:68: // streams are detected to be ...
6 years, 11 months ago (2014-01-16 08:22:06 UTC) #12
no longer working on chromium
Thanks guys. landing soon. SX https://codereview.chromium.org/133903004/diff/540002/content/test/data/media/getusermedia.html File content/test/data/media/getusermedia.html (right): https://codereview.chromium.org/133903004/diff/540002/content/test/data/media/getusermedia.html#newcode68 content/test/data/media/getusermedia.html:68: // streams are detected ...
6 years, 11 months ago (2014-01-16 13:08:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/133903004/870001
6 years, 11 months ago (2014-01-16 13:08:57 UTC) #14
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 16:03:08 UTC) #15
Message was sent while issue was closed.
Change committed as 245205

Powered by Google App Engine
This is Rietveld 408576698