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

Issue 2470023004: Return false if PeerConnection::GetStats() is called on invalid tracks (Closed)

Created:
4 years, 1 month ago by Zhi Huang
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Return false if PeerConnection::GetStats() is called on invalid tracks Before calling StatsCollctor::GetStats() in PeerConnection::GetStats(), check if the track is valid. If not, return false. A track is invalid if it is not a nullptr and there is no report data for it. BUG=webrtc:6652 Committed: https://crrev.com/e9e94c3fee79b0b590e2e0fd40f8c55398d8f548 Cr-Commit-Position: refs/heads/master@{#14934}

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR comments #

Total comments: 1

Patch Set 3 : Change the function parameter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M webrtc/api/peerconnection.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/api/statscollector.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/api/statscollector.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Taylor Brandstetter
Looks good, I think we just have to make sure that a null track isn't ...
4 years, 1 month ago (2016-11-03 22:47:01 UTC) #3
Zhi Huang
Please take another look. https://codereview.webrtc.org/2470023004/diff/1/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2470023004/diff/1/webrtc/api/peerconnection.cc#newcode889 webrtc/api/peerconnection.cc:889: if (!stats_->IsValidTrack(track)) { On 2016/11/03 ...
4 years, 1 month ago (2016-11-03 23:17:27 UTC) #5
Taylor Brandstetter
lgtm https://codereview.webrtc.org/2470023004/diff/40001/webrtc/api/statscollector.cc File webrtc/api/statscollector.cc (right): https://codereview.webrtc.org/2470023004/diff/40001/webrtc/api/statscollector.cc#newcode554 webrtc/api/statscollector.cc:554: StatsReport::kStatsReportTypeTrack, track->id())) != nullptr; nit: Since this only ...
4 years, 1 month ago (2016-11-04 00:48:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2470023004/60001
4 years, 1 month ago (2016-11-04 18:13:38 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 1 month ago (2016-11-04 18:38:18 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 18:46:54 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e9e94c3fee79b0b590e2e0fd40f8c55398d8f548
Cr-Commit-Position: refs/heads/master@{#14934}

Powered by Google App Engine
This is Rietveld 408576698