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

Issue 2222553002: Removed invalid thread DCHECKs in rtc_peer_connection_handler.cc (Closed)

Created:
4 years, 4 months ago by hbos_chromium
Modified:
4 years, 4 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removed CreateSessionDescriptionRequest and SetSessionDescriptionRequest main-thread DCHECKs from their destructors. CreateSessionDescriptionRequest and SetSessionDescriptionRequest are reference counted and have callback methods that are invoked on the signaling thread. If invoked on a non-main thread a post occurs to the main thread, referencing the object until the callback has completed on the main thread. There was an incorrect assumption that the object would also be destroyed on the main thread. But because the callback may sometimes complete before the signaling thread has had an opportunity to dereference the object it can be destroyed on the signaling thread. This CL allows it to be destroyed on any thread. BUG=634342 Committed: https://crrev.com/4d31d2e1163f6f3125470695ccd60a30830a1cde Cr-Commit-Position: refs/heads/master@{#412523}

Patch Set 1 : (Incorrectly thinking "this" was not ref counted when posting, not a fix) #

Total comments: 4

Patch Set 2 : Removed destructor DCHECKs and added a comment #

Total comments: 2

Patch Set 3 : Comment addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
hbos_chromium
Please take a look, perkj.
4 years, 4 months ago (2016-08-05 14:20:51 UTC) #4
perkj_chrome
https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode369 content/renderer/media/rtc_peer_connection_handler.cc:369: void OnSuccess(webrtc::SessionDescriptionInterface* desc) override { webrtc::SessionDescriptionInterface* desc should have ...
4 years, 4 months ago (2016-08-15 05:37:57 UTC) #8
hbos_chromium
https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode369 content/renderer/media/rtc_peer_connection_handler.cc:369: void OnSuccess(webrtc::SessionDescriptionInterface* desc) override { On 2016/08/15 05:37:57, perkj_chrome ...
4 years, 4 months ago (2016-08-15 14:16:55 UTC) #9
hbos_chromium
Please see comment, perkj. https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2222553002/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode369 content/renderer/media/rtc_peer_connection_handler.cc:369: void OnSuccess(webrtc::SessionDescriptionInterface* desc) override { ...
4 years, 4 months ago (2016-08-16 13:43:51 UTC) #10
hbos_chromium
PTAL perkj. As discussed, the first patch set did not fix the problem but now ...
4 years, 4 months ago (2016-08-17 09:51:15 UTC) #14
perkj_chrome
lgtm with the comment considered https://codereview.chromium.org/2222553002/diff/40001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2222553002/diff/40001/content/renderer/media/rtc_peer_connection_handler.cc#newcode396 content/renderer/media/rtc_peer_connection_handler.cc:396: // |OnFailure| may be ...
4 years, 4 months ago (2016-08-17 11:16:14 UTC) #19
hbos_chromium
https://codereview.chromium.org/2222553002/diff/40001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2222553002/diff/40001/content/renderer/media/rtc_peer_connection_handler.cc#newcode396 content/renderer/media/rtc_peer_connection_handler.cc:396: // |OnFailure| may be invoked on any thread, for ...
4 years, 4 months ago (2016-08-17 13:53:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2222553002/60001
4 years, 4 months ago (2016-08-17 13:53:53 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago (2016-08-17 14:36:11 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 14:39:59 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4d31d2e1163f6f3125470695ccd60a30830a1cde
Cr-Commit-Position: refs/heads/master@{#412523}

Powered by Google App Engine
This is Rietveld 408576698