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

Issue 1789903003: Replace scoped_ptr with unique_ptr in webrtc/call/ (Closed)

Created:
4 years, 9 months ago by kwiberg-webrtc
Modified:
4 years, 9 months ago
Reviewers:
the sun, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, henrika_webrtc, stefan-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, pbos-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace scoped_ptr with unique_ptr in webrtc/call/ BUG=webrtc:5520 Committed: https://crrev.com/b25345ee3f2f27a6814495f7f617f954fb4b192a Cr-Commit-Position: refs/heads/master@{#11970}

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -37 lines) Patch
M webrtc/call/bitrate_allocator.h View 1 chunk +2 lines, -1 line 3 comments Download
M webrtc/call/bitrate_allocator_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M webrtc/call/bitrate_estimator_tests.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/call/call.cc View 6 chunks +11 lines, -10 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/call_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/call/packet_injection_tests.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/call/rampup_tests.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/call/rtc_event_log.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/rtc_event_log.cc View 3 chunks +5 lines, -5 lines 6 comments Download
M webrtc/call/rtc_event_log2rtp_dump.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/call/rtc_event_log_unittest.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel_manager.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
kwiberg-webrtc
4 years, 9 months ago (2016-03-12 10:50:55 UTC) #2
the sun
lgtm https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc File webrtc/call/rtc_event_log.cc (right): https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc#newcode109 webrtc/call/rtc_event_log.cc:109: std::unique_ptr<FileWrapper>(FileWrapper::Create()); Is make_unique() C++14 or C++17?
4 years, 9 months ago (2016-03-12 11:51:13 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator.h File webrtc/call/bitrate_allocator.h (right): https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator.h#newcode14 webrtc/call/bitrate_allocator.h:14: #include <stdint.h> webrtc/typedefs.h https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc File webrtc/call/rtc_event_log.cc (right): https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc#newcode176 webrtc/call/rtc_event_log.cc:176: ...
4 years, 9 months ago (2016-03-12 12:05:18 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator.h File webrtc/call/bitrate_allocator.h (right): https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator.h#newcode14 webrtc/call/bitrate_allocator.h:14: #include <stdint.h> On 2016/03/12 12:05:18, stefan-webrtc (holmer) wrote: > ...
4 years, 9 months ago (2016-03-12 14:06:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1789903003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1789903003/1
4 years, 9 months ago (2016-03-12 14:07:05 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc File webrtc/call/rtc_event_log.cc (right): https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc#newcode109 webrtc/call/rtc_event_log.cc:109: std::unique_ptr<FileWrapper>(FileWrapper::Create()); On 2016/03/12 14:06:46, kwiberg-webrtc wrote: > On 2016/03/12 ...
4 years, 9 months ago (2016-03-12 14:10:05 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-12 14:10:49 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b25345ee3f2f27a6814495f7f617f954fb4b192a Cr-Commit-Position: refs/heads/master@{#11970}
4 years, 9 months ago (2016-03-12 14:11:02 UTC) #12
stefan-webrtc
4 years, 9 months ago (2016-03-12 14:42:39 UTC) #13
Message was sent while issue was closed.
lgtm

https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator.h
File webrtc/call/bitrate_allocator.h (right):

https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/bitrate_allocator...
webrtc/call/bitrate_allocator.h:14: #include <stdint.h>
On 2016/03/12 14:06:46, kwiberg-webrtc wrote:
> On 2016/03/12 12:05:18, stefan-webrtc (holmer) wrote:
> > webrtc/typedefs.h
> 
> Why? It just #includes stdint.h, and has a bunch of stuff I don’t want. (It
also
> has a comment that it should be #including webrtc/base/basictypes.h instead,
but
> that one also just #includes stdint.h and has a bunch of stuff I don’t want.)
> 
> And I didn’t even look that up before choosing stdint.h, even though I
> remembered we had some header file for it. Because either our header file
> defines the integer types in a manner compatible with stdint.h, in which case
it
> doesn't matter, or else we have a major problem because there are a thousand
> places where an #include of stdint.h could creep in and wreak havoc.

Ok, I don't know the details of why we use typedefs.h, isn't clear to me if it
does something different from stdint.h, so if you are convinced go ahead. :) I
was mostly thinking about following the convension.

https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc
File webrtc/call/rtc_event_log.cc (right):

https://codereview.webrtc.org/1789903003/diff/1/webrtc/call/rtc_event_log.cc#...
webrtc/call/rtc_event_log.cc:176: : file_(FileWrapper::Create()),
On 2016/03/12 14:06:46, kwiberg-webrtc wrote:
> On 2016/03/12 12:05:18, stefan-webrtc (holmer) wrote:
> > You may not have the answer, but it seems odd to me that the file wrapper is
> > created here and on line 109... Maybe you can remove one of them? Preferably
> > line 109 since we already get the clock in the initializer list.
> 
> I don’t want to do it in this CL. It’s the Unix philosophy of CLs: “do only
one
> thing, but do it well”.
> 
> But yes, one of them should probably go away. I don’t think we actually end up
> executing more than one of them, though, so it’s just a code neatness issue.

Sure, no problem. I was just surprised when I reviewed... One of the downsides
with having to places to initialize things, IMO.

Powered by Google App Engine
This is Rietveld 408576698