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

Issue 1702983002: Replace scoped_ptr with unique_ptr in webrtc/voice_engine/ (Closed)

Created:
4 years, 10 months ago by kwiberg-webrtc
Modified:
4 years, 10 months ago
Reviewers:
the sun, tommi
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, henrika_webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun
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/voice_engine/ Also introduce a pair of scoped_ptr <-> unique_ptr conversion functions. By using them judiciously, we can keep these CL:s small and avoid having to convert enormous amounts of code at once. BUG=webrtc:5520 Committed: https://crrev.com/b7f89d6e668602e46a20e3a9927790ff34029b2a Cr-Commit-Position: refs/heads/master@{#11658}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -64 lines) Patch
M webrtc/audio/audio_receive_stream.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/base/scoped_ptr.h View 2 chunks +11 lines, -0 lines 0 comments Download
M webrtc/test/mock_voice_engine.h View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel.h View 6 chunks +18 lines, -17 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel_manager.h View 3 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
M webrtc/voice_engine/channel_proxy.h View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/network_predictor.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/voice_engine/network_predictor_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/voice_engine/shared_data.h View 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/voice_engine/shared_data.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/fakes/conference_transport.h View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_test.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_cpu_test.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_output_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_stress_test.h View 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_stress_test.cc View 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/transmit_mixer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/voice_engine/voe_codec_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/voice_engine/voice_engine_impl.h View 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/voice_engine/voice_engine_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
kwiberg-webrtc
Please review: tommi: scoped_ptr.h solenberg: the rest
4 years, 10 months ago (2016-02-17 15:05:05 UTC) #3
the sun
LGTM, thanks for doing this. Could you also make class member unique_ptr:s const, when possible?
4 years, 10 months ago (2016-02-17 15:38:54 UTC) #4
tommi
lgtm
4 years, 10 months ago (2016-02-17 17:15:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1702983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1702983002/1
4 years, 10 months ago (2016-02-17 18:02:57 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-17 18:04:23 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b7f89d6e668602e46a20e3a9927790ff34029b2a Cr-Commit-Position: refs/heads/master@{#11658}
4 years, 10 months ago (2016-02-17 18:04:32 UTC) #11
kwiberg-webrtc
4 years, 10 months ago (2016-02-17 18:10:12 UTC) #12
Message was sent while issue was closed.
On 2016/02/17 15:38:54, the sun wrote:
> Could you also make class member unique_ptr:s const, when possible?

That's certainly a good idea, but would make these CLs more difficult to review,
and, perhaps more importantly, significantly more work to create. I've built a
script that automates a good portion of the work, because there's going to be
dozens of CLs this size before I'm done. Adding more manual steps to the process
is not appealing.

Powered by Google App Engine
This is Rietveld 408576698