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

Issue 699613002: Change DtmfSenderHandler to handle events on the signaling thread. (Closed)

Created:
6 years, 1 month ago by perkj_chrome
Modified:
6 years ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change DtmfSenderHandler to handle events on the signaling thread. Since the RTCPeerConnectionHandler now uses a separate thread for API-calls to libjingle (https://codereview.chromium.org/675013005/) the DtmfSenderHandler must also handle events on the signaling thread. This cl also fix a problem where a remote video source falsly DCHECKs that an event have been missed. TEST=out/Debug/content_browsertests --gtest_filter=WebRtcBrowserTest.MANU* --run-manual BUG=369796 Committed: https://crrev.com/57f60d90e573ff287f73ba7ac447d6ff333745a9 Cr-Commit-Position: refs/heads/master@{#302439}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed review feedback. #

Patch Set 3 : Fix Android build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -11 lines) Patch
M content/renderer/media/rtc_dtmf_sender_handler.h View 1 2 chunks +11 lines, -7 lines 0 comments Download
M content/renderer/media/rtc_dtmf_sender_handler.cc View 1 1 chunk +37 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.cc View 1 2 3 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
perkj_chrome
Please take a look.
6 years, 1 month ago (2014-11-03 13:22:55 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_dtmf_sender_handler.cc File content/renderer/media/rtc_dtmf_sender_handler.cc (right): https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_dtmf_sender_handler.cc#newcode45 content/renderer/media/rtc_dtmf_sender_handler.cc:45: const scoped_refptr<base::MessageLoopProxy> main_thread_; const scoped_refptr<base::SingleThreadTaskRunner> main_thread_; ? https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_dtmf_sender_handler.cc#newcode54 content/renderer/media/rtc_dtmf_sender_handler.cc:54: ...
6 years, 1 month ago (2014-11-03 13:49:56 UTC) #3
perkj_chrome
PTAL https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_dtmf_sender_handler.cc File content/renderer/media/rtc_dtmf_sender_handler.cc (right): https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_dtmf_sender_handler.cc#newcode45 content/renderer/media/rtc_dtmf_sender_handler.cc:45: const scoped_refptr<base::MessageLoopProxy> main_thread_; On 2014/11/03 13:49:56, tommi wrote: ...
6 years, 1 month ago (2014-11-03 14:53:33 UTC) #4
tommi (sloooow) - chröme
lgtm
6 years, 1 month ago (2014-11-03 15:22:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699613002/20001
6 years, 1 month ago (2014-11-03 15:23:34 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/30058)
6 years, 1 month ago (2014-11-03 15:58:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699613002/40001
6 years, 1 month ago (2014-11-03 16:06:10 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-03 16:57:30 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/57f60d90e573ff287f73ba7ac447d6ff333745a9 Cr-Commit-Position: refs/heads/master@{#302439}
6 years, 1 month ago (2014-11-03 16:58:08 UTC) #13
dmichael (off chromium)
6 years ago (2014-12-04 19:28:47 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_d...
File content/renderer/media/rtc_dtmf_sender_handler.cc (right):

https://codereview.chromium.org/699613002/diff/1/content/renderer/media/rtc_d...
content/renderer/media/rtc_dtmf_sender_handler.cc:54: observer_ = new
Observer(weak_factory_.GetWeakPtr());
WeakPtrFactory should always be the last member...  see
crbug.com/303818
I'm working on some CLs to fix this up, but I wanted to let you guys know. You
can read the bug and/or comments in weak_ptr.h for an explanation.

Powered by Google App Engine
This is Rietveld 408576698