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

Issue 2049683003: FileRecorder + FilePlayer: Let Create functions return unique_ptr (Closed)

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

Description

FileRecorder + FilePlayer: Let Create functions return unique_ptr Because passing ownership in raw pointers makes kittens cry. This also means we can ditch the Destroy functions and the protected destructors. (Well, almost. We need to keep the old CreateFilePlayer and DestroyFilePlayer around for a little while longer because of an external caller.) Committed: https://crrev.com/5a25d9504acdaab540e1a7f1f26cf3bab34a7d5e Cr-Commit-Position: refs/heads/master@{#13797}

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -495 lines) Patch
M webrtc/modules/audio_mixer/audio_mixer.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer.cc View 7 chunks +3 lines, -15 lines 0 comments Download
M webrtc/modules/utility/include/file_player.h View 3 chunks +10 lines, -4 lines 3 comments Download
M webrtc/modules/utility/include/file_recorder.h View 3 chunks +7 lines, -6 lines 3 comments Download
M webrtc/modules/utility/source/file_player.cc View 4 chunks +13 lines, -9 lines 0 comments Download
M webrtc/modules/utility/source/file_player_unittests.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/utility/source/file_recorder.cc View 4 chunks +7 lines, -10 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 20 chunks +92 lines, -117 lines 0 comments Download
M webrtc/voice_engine/output_mixer.h View 3 chunks +4 lines, -2 lines 2 comments Download
M webrtc/voice_engine/output_mixer.cc View 6 chunks +50 lines, -70 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.h View 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/voice_engine/transmit_mixer.cc View 13 chunks +178 lines, -251 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (8 generated)
kwiberg-webrtc
4 years, 4 months ago (2016-08-17 09:57:03 UTC) #6
ossu
https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h File webrtc/modules/utility/include/file_player.h (right): https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h#newcode32 webrtc/modules/utility/include/file_player.h:32: static std::unique_ptr<FilePlayer> NewFilePlayer( I've a slight issue with the ...
4 years, 4 months ago (2016-08-17 11:09:06 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h File webrtc/modules/utility/include/file_player.h (right): https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h#newcode32 webrtc/modules/utility/include/file_player.h:32: static std::unique_ptr<FilePlayer> NewFilePlayer( On 2016/08/17 11:09:05, ossu wrote: > ...
4 years, 4 months ago (2016-08-17 12:27:39 UTC) #8
ossu
lgtm https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h File webrtc/modules/utility/include/file_player.h (right): https://codereview.webrtc.org/2049683003/diff/40001/webrtc/modules/utility/include/file_player.h#newcode32 webrtc/modules/utility/include/file_player.h:32: static std::unique_ptr<FilePlayer> NewFilePlayer( On 2016/08/17 12:27:39, kwiberg-webrtc wrote: ...
4 years, 4 months ago (2016-08-17 13:49:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2049683003/40001
4 years, 4 months ago (2016-08-17 13:50:25 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 4 months ago (2016-08-17 14:31:18 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 14:31:24 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a25d9504acdaab540e1a7f1f26cf3bab34a7d5e
Cr-Commit-Position: refs/heads/master@{#13797}

Powered by Google App Engine
This is Rietveld 408576698