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

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed)

Created:
4 years, 8 months ago by danakj
Modified:
4 years, 8 months ago
Reviewers:
brettw, DaleCurtis, dcheng
CC:
avayvod+watch_chromium.org, chromium-reviews, dcheng, feature-media-reviews_chromium.org, miu+watch_chromium.org, mlamouri+watch-media_chromium.org, piman, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace scoped_ptr with std::unique_ptr in //media/base. Plus some other bonus ones in media and some IWYU fixes. TBR=brettw, dalecurtis BUG=554298 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/6aaed6a40bc23a872e14f19a39ff2d7998c803d0 Cr-Commit-Position: refs/heads/master@{#389652}

Patch Set 1 #

Patch Set 2 : scopedptr-media-base: . #

Patch Set 3 : scopedptr-media-base: . #

Total comments: 12

Patch Set 4 : scopedptr-media-base: . #

Patch Set 5 : scopedptr-media-base: usings #

Patch Set 6 : scopedptr-media-base: android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+780 lines, -659 lines) Patch
M cc/output/renderer_pixeltest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M components/audio_modem/audio_player_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/session/media_session_delegate_android_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M media/base/android/access_unit_queue.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/android_cdm_factory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/audio_decoder_job.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/android/audio_media_codec_decoder.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/android/media_codec_decoder.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/android/media_codec_decoder_unittest.cc View 1 18 chunks +20 lines, -18 lines 0 comments Download
M media/base/android/media_codec_player.h View 5 chunks +8 lines, -7 lines 0 comments Download
M media/base/android/media_codec_player.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/media_codec_player_unittest.cc View 1 31 chunks +51 lines, -61 lines 0 comments Download
M media/base/android/media_decoder_job.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/android/media_drm_bridge.h View 4 chunks +14 lines, -11 lines 0 comments Download
M media/base/android/media_drm_bridge.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M media/base/android/media_drm_bridge_cdm_context.h View 2 chunks +4 lines, -2 lines 0 comments Download
M media/base/android/media_drm_bridge_unittest.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M media/base/android/media_player_android.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/android/media_player_bridge.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/media_source_player.h View 6 chunks +7 lines, -6 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/android/media_task_runner.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/ndk_media_codec_bridge.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/android/provision_fetcher.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 6 chunks +7 lines, -6 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge_unittest.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M media/base/audio_block_fifo_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/audio_buffer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/audio_buffer_converter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/audio_buffer_converter.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_buffer_converter_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M media/base/audio_buffer_queue.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/audio_buffer_queue_unittest.cc View 11 chunks +13 lines, -12 lines 0 comments Download
M media/base/audio_buffer_unittest.cc View 1 10 chunks +10 lines, -9 lines 0 comments Download
M media/base/audio_bus.h View 3 chunks +13 lines, -10 lines 0 comments Download
M media/base/audio_bus.cc View 2 chunks +22 lines, -19 lines 0 comments Download
M media/base/audio_bus_perftest.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M media/base/audio_bus_unittest.cc View 1 13 chunks +27 lines, -27 lines 0 comments Download
M media/base/audio_converter.h View 3 chunks +7 lines, -7 lines 0 comments Download
M media/base/audio_converter_perftest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/base/audio_converter_unittest.cc View 3 chunks +8 lines, -7 lines 0 comments Download
M media/base/audio_discard_helper_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M media/base/audio_fifo.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/base/audio_fifo_unittest.cc View 1 8 chunks +12 lines, -8 lines 0 comments Download
M media/base/audio_hash_unittest.cc View 1 5 chunks +7 lines, -5 lines 0 comments Download
M media/base/audio_pull_fifo.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/audio_pull_fifo_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/base/audio_push_fifo.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/audio_push_fifo_unittest.cc View 1 4 chunks +4 lines, -3 lines 0 comments Download
M media/base/audio_renderer_mixer.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/audio_renderer_mixer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/audio_renderer_mixer_input_unittest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M media/base/audio_renderer_mixer_unittest.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M media/base/audio_shifter.h View 4 chunks +5 lines, -5 lines 0 comments Download
M media/base/audio_shifter.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M media/base/audio_shifter_unittest.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M media/base/audio_splicer.h View 4 chunks +7 lines, -6 lines 0 comments Download
M media/base/audio_splicer.cc View 1 2 3 4 5 6 chunks +8 lines, -7 lines 0 comments Download
M media/base/audio_splicer_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M media/base/audio_video_metadata_extractor_unittest.cc View 7 chunks +11 lines, -9 lines 0 comments Download
M media/base/bind_to_current_loop.h View 2 chunks +6 lines, -3 lines 0 comments Download
M media/base/bind_to_current_loop_unittest.cc View 1 8 chunks +17 lines, -16 lines 0 comments Download
M media/base/bit_reader.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/bitstream_buffer.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/byte_queue.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/byte_queue.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/cdm_factory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/cdm_promise_adapter.h View 3 chunks +6 lines, -4 lines 0 comments Download
M media/base/cdm_promise_adapter.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M media/base/channel_mixer_unittest.cc View 1 4 chunks +9 lines, -6 lines 0 comments Download
M media/base/data_buffer.h View 3 chunks +4 lines, -3 lines 0 comments Download
M media/base/data_buffer.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/data_buffer_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/decoder_buffer.h View 4 chunks +5 lines, -5 lines 0 comments Download
M media/base/decoder_buffer_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M media/base/decrypt_config.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/demuxer.h View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M media/base/demuxer_perftest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/fake_demuxer_stream.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/base/fake_demuxer_stream_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M media/base/mac/videotoolbox_glue.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/mac/videotoolbox_helpers.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/media_file_checker.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/media_keys.h View 3 chunks +9 lines, -8 lines 0 comments Download
M media/base/media_log.h View 2 chunks +22 lines, -20 lines 0 comments Download
M media/base/media_log.cc View 3 chunks +34 lines, -26 lines 0 comments Download
M media/base/media_log_event.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/media_tracks.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/media_tracks.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M media/base/mock_filters.h View 1 5 chunks +5 lines, -4 lines 0 comments Download
M media/base/mock_filters.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M media/base/mock_media_log.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/multi_channel_resampler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/multi_channel_resampler_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M media/base/null_video_sink.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/null_video_sink_unittest.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M media/base/pipeline.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M media/base/pipeline_impl.h View 1 6 chunks +9 lines, -7 lines 0 comments Download
M media/base/pipeline_impl.cc View 6 chunks +8 lines, -7 lines 0 comments Download
M media/base/pipeline_impl_unittest.cc View 1 5 chunks +11 lines, -10 lines 0 comments Download
M media/base/renderer_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/seekable_buffer_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/serial_runner.h View 2 chunks +2 lines, -3 lines 0 comments Download
M media/base/serial_runner.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M media/base/serial_runner_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/simd/convert_rgb_to_yuv_unittest.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M media/base/sinc_resampler.h View 2 chunks +6 lines, -5 lines 0 comments Download
M media/base/sinc_resampler_unittest.cc View 1 6 chunks +8 lines, -6 lines 0 comments Download
M media/base/stream_parser.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/base/stream_parser_buffer.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/base/test_data_util.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/test_helpers.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/text_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/base/text_renderer.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M media/base/text_renderer_unittest.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M media/base/text_track.h View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M media/base/user_input_monitor.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/user_input_monitor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/user_input_monitor_linux.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/user_input_monitor_mac.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/user_input_monitor_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M media/base/user_input_monitor_win.cc View 7 chunks +10 lines, -7 lines 0 comments Download
M media/base/vector_math_perftest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M media/base/vector_math_unittest.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M media/base/video_frame_metadata.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/video_frame_metadata.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_frame_pool_unittest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M media/base/video_frame_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/video_util_unittest.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M media/base/wall_clock_time_source.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/wall_clock_time_source_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M media/base/yuv_convert.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/base/yuv_convert_perftest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M media/base/yuv_convert_unittest.cc View 21 chunks +63 lines, -57 lines 0 comments Download
M media/cdm/cenc_utils.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/default_renderer_factory.h View 2 chunks +3 lines, -1 line 0 comments Download
M media/renderers/default_renderer_factory.cc View 4 chunks +5 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (12 generated)
danakj
4 years, 8 months ago (2016-04-23 00:07:48 UTC) #1
danakj
Did a pass-over with a bunch of IWYU fixes in media/
4 years, 8 months ago (2016-04-23 00:33:31 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906423005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906423005/40001
4 years, 8 months ago (2016-04-23 00:38:42 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906423005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906423005/60001
4 years, 8 months ago (2016-04-23 00:51:10 UTC) #8
dcheng
LGTM with optional nits. https://codereview.chromium.org/1906423005/diff/40001/media/base/audio_renderer_mixer.h File media/base/audio_renderer_mixer.h (right): https://codereview.chromium.org/1906423005/diff/40001/media/base/audio_renderer_mixer.h#newcode53 media/base/audio_renderer_mixer.h:53: typedef std::map<int, std::unique_ptr<LoopbackAudioConverter>> using if ...
4 years, 8 months ago (2016-04-23 00:57:23 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/190181) mac_chromium_gn_rel on ...
4 years, 8 months ago (2016-04-23 01:10:10 UTC) #11
danakj
Plus some bonus other usings too. https://codereview.chromium.org/1906423005/diff/40001/media/base/audio_renderer_mixer.h File media/base/audio_renderer_mixer.h (right): https://codereview.chromium.org/1906423005/diff/40001/media/base/audio_renderer_mixer.h#newcode53 media/base/audio_renderer_mixer.h:53: typedef std::map<int, std::unique_ptr<LoopbackAudioConverter>> ...
4 years, 8 months ago (2016-04-23 01:11:15 UTC) #12
danakj
TBR=brettw
4 years, 8 months ago (2016-04-23 01:11:27 UTC) #13
DaleCurtis
lgtm
4 years, 8 months ago (2016-04-23 19:01:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906423005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906423005/80001
4 years, 8 months ago (2016-04-25 20:34:17 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/55958) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-04-25 21:16:08 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906423005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906423005/100001
4 years, 8 months ago (2016-04-25 21:34:02 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-26 01:25:58 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 01:27:17 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6aaed6a40bc23a872e14f19a39ff2d7998c803d0
Cr-Commit-Position: refs/heads/master@{#389652}

Powered by Google App Engine
This is Rietveld 408576698