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

Issue 1439973006: Reland Fix leak of RTCPeerConnectionHandler if PeerConnection.close() is called from js.… (Closed)

Created:
5 years, 1 month ago by perkj_chrome
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This cl was originally reviewed in https://codereview.chromium.org/1438153002/. Patchset 1 is a pure re-upload. Pachset 2 fix a bug in the original cl and adds a unit test. Fix leak of RTCPeerConnectionHandler if PeerConnection.close() is called from js. This fixes a bug where RTCPeerConnectionHandler::client_ is set to null when RTCPeerConnectionHandler.stop() is called. RTCPeerConnectionHandler.stop() is a pretty bad name (override from blink::WebRTCPeerConnectionHandler) since it is triggered when JS or the browser process want to close a PeerConnection. Since client_ was set to null, RTCPeerConnectionHandler::DestructAllHandlers did not delete RTCPeerConnectionHandler. BUG=542132 Committed: https://crrev.com/93f225811f0767054c81f0368ac31b5a8448aeee Cr-Commit-Position: refs/heads/master@{#359784}

Patch Set 1 #

Patch Set 2 : Fix bug and add expectation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -21 lines) Patch
M content/renderer/media/mock_peer_connection_impl.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 chunk +8 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 12 chunks +17 lines, -16 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
perkj_chrome
Please?
5 years, 1 month ago (2015-11-15 20:19:12 UTC) #3
tommi (sloooow) - chröme
lgtm
5 years, 1 month ago (2015-11-15 20:27:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1439973006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1439973006/20001
5 years, 1 month ago (2015-11-15 20:27:48 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-15 22:17:19 UTC) #7
commit-bot: I haz the power
5 years, 1 month ago (2015-11-15 22:17:58 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/93f225811f0767054c81f0368ac31b5a8448aeee
Cr-Commit-Position: refs/heads/master@{#359784}

Powered by Google App Engine
This is Rietveld 408576698