Chromium Code Reviews

Issue 1844133002: Remove the dead code in Transport::ConnectChannels (Closed)

Created:
4 years, 8 months ago by Zhi Huang
Modified:
4 years, 8 months ago
Reviewers:
Taylor Brandstetter, pthatcher1
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

Remove the if condition block in the function Transport::ConnectChannels. It will not be triggered anymore. Committed: https://crrev.com/3ba4d533795655745c201b9d2515705112baa32f Cr-Commit-Position: refs/heads/master@{#12321}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Add local description null pointer check. Modified the unit test. #

Patch Set 4 : Modified the FakeTransportController #

Total comments: 1

Patch Set 5 : Small modification of null check #

Unified diffs Side-by-side diffs Stats (+20 lines, -15 lines)
M webrtc/p2p/base/faketransportcontroller.h View 1 chunk +11 lines, -0 lines 0 comments
M webrtc/p2p/base/transport.cc View 1 chunk +1 line, -15 lines 0 comments
M webrtc/p2p/base/transport_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments

Messages

Total messages: 17 (9 generated)
Zhi Huang
4 years, 8 months ago (2016-03-31 22:48:19 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/1844133002/diff/20001/webrtc/p2p/base/transport.cc File webrtc/p2p/base/transport.cc (left): https://codereview.webrtc.org/1844133002/diff/20001/webrtc/p2p/base/transport.cc#oldcode245 webrtc/p2p/base/transport.cc:245: Can you add "RTC_DCHECK(local_description_ != nullptr);"?
4 years, 8 months ago (2016-04-01 00:43:08 UTC) #8
Zhi Huang
On 2016/04/01 00:43:08, Taylor Brandstetter wrote: > https://codereview.webrtc.org/1844133002/diff/20001/webrtc/p2p/base/transport.cc > File webrtc/p2p/base/transport.cc (left): > > https://codereview.webrtc.org/1844133002/diff/20001/webrtc/p2p/base/transport.cc#oldcode245 ...
4 years, 8 months ago (2016-04-04 18:04:15 UTC) #9
Taylor Brandstetter
lgtm
4 years, 8 months ago (2016-04-05 21:54:34 UTC) #10
pthatcher1
lgtm https://codereview.webrtc.org/1844133002/diff/60001/webrtc/p2p/base/transport.cc File webrtc/p2p/base/transport.cc (right): https://codereview.webrtc.org/1844133002/diff/60001/webrtc/p2p/base/transport.cc#newcode230 webrtc/p2p/base/transport.cc:230: RTC_DCHECK(local_description_ != nullptr); RTC_DCHECK(local_description_) is enough.
4 years, 8 months ago (2016-04-11 19:41:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844133002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844133002/80001
4 years, 8 months ago (2016-04-11 21:31:24 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-11 22:10:57 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:11:06 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3ba4d533795655745c201b9d2515705112baa32f
Cr-Commit-Position: refs/heads/master@{#12321}

Powered by Google App Engine