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

Issue 2240633004: Return nil from RTCPeerConnectionFactory when creation fails (Closed)

Created:
4 years, 4 months ago by skvlad
Modified:
4 years, 4 months ago
Reviewers:
tkchin_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Return nil from RTCPeerConnectionFactory when creation fails RTCPeerConnectionFactory.createPeerConnection did not check the return value of the native createPeerConnection() - so when the native PC fails to be created, it could end up attempting to use a null pointer. The change makes it return nil when the creation fails. The application can then detect and respond to the failure. Committed: https://crrev.com/588783adcd2bcf1a788cfd318e1394f241e9a78f Cr-Commit-Position: refs/heads/master@{#13732}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
skvlad
4 years, 4 months ago (2016-08-11 19:36:45 UTC) #2
tkchin_webrtc
lgtm
4 years, 4 months ago (2016-08-11 19:48:24 UTC) #3
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/2240633004/1
4 years, 4 months ago (2016-08-11 19:48:58 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-11 21:29:29 UTC) #6
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 21:29:38 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/588783adcd2bcf1a788cfd318e1394f241e9a78f
Cr-Commit-Position: refs/heads/master@{#13732}

Powered by Google App Engine
This is Rietveld 408576698