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

Issue 1802013002: A bunch of interfaces: Return scoped_ptr<SSLCertificate> (Closed)

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

Description

A bunch of interfaces: Return scoped_ptr<SSLCertificate> Instead of using a raw pointer output parameter. This affects SSLStreamAdapter::GetPeerCertificate Transport::GetRemoteSSLCertificate TransportChannel::GetRemoteSSLCertificate TransportController::GetRemoteSSLCertificate WebRtcSession::GetRemoteSSLCertificate This is a good idea in general, but will also be very convenient when scoped_ptr is gone, since unique_ptr doesn't have an .accept() method. BUG=webrtc:5520 Committed: https://crrev.com/b4d01c4ded7ed1f7ff5ff75751dc52b7851a3918 Cr-Commit-Position: refs/heads/master@{#12262}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : less auto #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : less auto #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -126 lines) Patch
M webrtc/api/statscollector.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 2 19 chunks +55 lines, -44 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/base/opensslstreamadapter.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M webrtc/base/sslstreamadapter.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/base/sslstreamadapter_unittest.cc View 1 2 3 4 3 chunks +11 lines, -14 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 1 2 3 4 3 chunks +8 lines, -12 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/transport.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transportchannel.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transportcontroller.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/p2p/base/transportcontroller.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M webrtc/p2p/base/transportcontroller_unittest.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
kwiberg-webrtc
Before landing, this, the following patch needs to be landed in Chromium: diff --git a/remoting/protocol/channel_socket_adapter_unittest.cc ...
4 years, 9 months ago (2016-03-21 14:40:15 UTC) #3
torbjorng (webrtc)
lgtm, but please consider readability wrt auto usage. https://codereview.webrtc.org/1802013002/diff/20001/webrtc/api/statscollector.cc File webrtc/api/statscollector.cc (right): https://codereview.webrtc.org/1802013002/diff/20001/webrtc/api/statscollector.cc#newcode706 webrtc/api/statscollector.cc:706: auto ...
4 years, 9 months ago (2016-03-23 14:18:23 UTC) #5
torbjorng (webrtc)
lgtm, but please consider readability wrt auto usage.
4 years, 9 months ago (2016-03-23 14:18:26 UTC) #6
kwiberg-webrtc
New patch set with less auto. https://codereview.webrtc.org/1802013002/diff/20001/webrtc/api/statscollector.cc File webrtc/api/statscollector.cc (right): https://codereview.webrtc.org/1802013002/diff/20001/webrtc/api/statscollector.cc#newcode706 webrtc/api/statscollector.cc:706: auto cert = ...
4 years, 9 months ago (2016-03-23 15:05:27 UTC) #8
kwiberg-webrtc
Per, would you be able to review this?
4 years, 8 months ago (2016-03-31 12:56:59 UTC) #10
perkj_webrtc
lgtm https://codereview.webrtc.org/1802013002/diff/80001/webrtc/base/sslstreamadapter_unittest.cc File webrtc/base/sslstreamadapter_unittest.cc (right): https://codereview.webrtc.org/1802013002/diff/80001/webrtc/base/sslstreamadapter_unittest.cc#newcode1046 webrtc/base/sslstreamadapter_unittest.cc:1046: auto client_peer_cert = GetPeerCertificate(true); please use rtc::scoped_ptr<rtc::SSLCertificate> for ...
4 years, 8 months ago (2016-04-01 14:19:09 UTC) #11
kwiberg-webrtc
Uploaded new patch set with more autos removed. https://codereview.webrtc.org/1802013002/diff/80001/webrtc/base/sslstreamadapter_unittest.cc File webrtc/base/sslstreamadapter_unittest.cc (right): https://codereview.webrtc.org/1802013002/diff/80001/webrtc/base/sslstreamadapter_unittest.cc#newcode1046 webrtc/base/sslstreamadapter_unittest.cc:1046: auto ...
4 years, 8 months ago (2016-04-02 01:20:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802013002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802013002/120001
4 years, 8 months ago (2016-04-06 08:57:48 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) win_baremetal on ...
4 years, 8 months ago (2016-04-06 10:58:30 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1802013002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1802013002/120001
4 years, 8 months ago (2016-04-06 11:20:11 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 8 months ago (2016-04-06 12:15:11 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 12:15:19 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b4d01c4ded7ed1f7ff5ff75751dc52b7851a3918
Cr-Commit-Position: refs/heads/master@{#12262}

Powered by Google App Engine
This is Rietveld 408576698