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

Issue 1800753003: Port::GetStunMessage: Write to scoped_ptr instead of raw pointer (Closed)

Created:
4 years, 9 months ago by kwiberg-webrtc
Modified:
4 years, 9 months ago
Reviewers:
tommi
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

Port::GetStunMessage: Write to scoped_ptr instead of raw pointer This is a good idea in general, because it makes ownership clearer, 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/6baec0351aab267fb4f07b95778ae2e5f0d58f05 Cr-Commit-Position: refs/heads/master@{#12002}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Let caller worry about clearing the output argument #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -42 lines) Patch
M webrtc/p2p/base/port.h View 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 4 chunks +7 lines, -6 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 14 chunks +34 lines, -34 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
kwiberg-webrtc
4 years, 9 months ago (2016-03-15 09:25:19 UTC) #2
tommi
https://codereview.webrtc.org/1800753003/diff/1/webrtc/p2p/base/port.cc File webrtc/p2p/base/port.cc (right): https://codereview.webrtc.org/1800753003/diff/1/webrtc/p2p/base/port.cc#newcode343 webrtc/p2p/base/port.cc:343: out_msg->reset(); Prefer to have this be the caller's responsibility. ...
4 years, 9 months ago (2016-03-15 09:30:16 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/1800753003/diff/1/webrtc/p2p/base/port.cc File webrtc/p2p/base/port.cc (right): https://codereview.webrtc.org/1800753003/diff/1/webrtc/p2p/base/port.cc#newcode343 webrtc/p2p/base/port.cc:343: out_msg->reset(); On 2016/03/15 09:30:16, tommi-webrtc wrote: > Prefer to ...
4 years, 9 months ago (2016-03-15 10:16:01 UTC) #4
tommi
lgtm
4 years, 9 months ago (2016-03-15 17:02:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800753003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800753003/20001
4 years, 9 months ago (2016-03-15 17:02:49 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-15 18:09:43 UTC) #8
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 18:10:03 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6baec0351aab267fb4f07b95778ae2e5f0d58f05
Cr-Commit-Position: refs/heads/master@{#12002}

Powered by Google App Engine
This is Rietveld 408576698