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

Issue 1694073002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/ (Closed)

Created:
4 years, 10 months ago by kwiberg-webrtc
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@up-actest
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/ BUG=webrtc:5520 Committed: https://crrev.com/16c5a96630d8e1b8cc7123df9fc2adc874b43e0a Cr-Commit-Position: refs/heads/master@{#11622}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -60 lines) Patch
M webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc View 2 chunks +3 lines, -1 line 2 comments Download
M webrtc/modules/audio_coding/acm2/acm_receiver.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/acm_send_test_oldapi.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc View 8 chunks +14 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/codec_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/acm2/codec_manager_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/initial_delay_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/acm2/initial_delay_manager_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/acm2/rent_a_codec.h View 2 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/rent_a_codec.cc View 4 chunks +24 lines, -22 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (5 generated)
kwiberg-webrtc
4 years, 10 months ago (2016-02-13 17:30:36 UTC) #3
tommi
lgtm
4 years, 10 months ago (2016-02-14 15:56:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694073002/1
4 years, 10 months ago (2016-02-15 09:21:12 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-15 10:27:27 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/16c5a96630d8e1b8cc7123df9fc2adc874b43e0a Cr-Commit-Position: refs/heads/master@{#11622}
4 years, 10 months ago (2016-02-15 10:27:40 UTC) #10
hlundin-webrtc
lgtm, but... https://codereview.webrtc.org/1694073002/diff/1/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc File webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc (right): https://codereview.webrtc.org/1694073002/diff/1/webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc#newcode16 webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc:16: #include <memory> You do not have to ...
4 years, 10 months ago (2016-02-15 11:18:15 UTC) #11
kwiberg-webrtc
4 years, 10 months ago (2016-02-15 11:42:50 UTC) #12
Message was sent while issue was closed.
https://codereview.webrtc.org/1694073002/diff/1/webrtc/modules/audio_coding/a...
File webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc (right):

https://codereview.webrtc.org/1694073002/diff/1/webrtc/modules/audio_coding/a...
webrtc/modules/audio_coding/acm2/acm_receive_test_oldapi.cc:16: #include
<memory>
On 2016/02/15 11:18:15, hlundin-webrtc wrote:
> You do not have to repeat the same include in both .h and .cc files.
> 
> https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
> "any includes present in the related header do not need to be included again
in
> the related cc (i.e., foo.cc can rely on foo.h's includes)."

Yeah, the script I whipped up for automating this simply ensures that we
#include <memory> in all files that mention unique_ptr, without taking
subtleties like this one into account. I'll see if I can make it handle this
case without spending too much time on it.

Powered by Google App Engine
This is Rietveld 408576698