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

Issue 2702323002: Move AudioDebugFileWriter from content/ to media/. (Closed)

Created:
3 years, 10 months ago by Henrik Grunell
Modified:
3 years, 10 months ago
Reviewers:
DaleCurtis, o1ka, pfeldman
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move AudioDebugFileWriter from content/ to media/. * Move audio_debug_file_writer* to media/audio/. * Remove media::AudioFileWriter interface. * Pass FILE task runner from content to media to be able to perform operations on that thread. * This is done in AudioInputController, thus its Create() functions and constructor are updated. * AudioDebugFileWriter is now created in AudioInputController constructor. BUG=694278 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2702323002 Cr-Commit-Position: refs/heads/master@{#452602} Committed: https://chromium.googlesource.com/chromium/src/+/3d7b06a12ea2897550ef82afef840a06501ab544

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Code review. #

Total comments: 6

Patch Set 3 : Code review, unit test fix and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -914 lines) Patch
M content/browser/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D content/browser/renderer_host/media/audio_debug_file_writer.h View 1 chunk +0 lines, -52 lines 0 comments Download
D content/browser/renderer_host/media/audio_debug_file_writer.cc View 1 chunk +0 lines, -308 lines 0 comments Download
D content/browser/renderer_host/media/audio_debug_file_writer_unittest.cc View 1 chunk +0 lines, -350 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 3 chunks +5 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc View 4 chunks +10 lines, -8 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/audio/BUILD.gn View 3 chunks +3 lines, -1 line 0 comments Download
A + media/audio/audio_debug_file_writer.h View 1 2 1 chunk +52 lines, -15 lines 0 comments Download
A + media/audio/audio_debug_file_writer.cc View 1 2 9 chunks +79 lines, -35 lines 0 comments Download
A + media/audio/audio_debug_file_writer_unittest.cc View 1 2 12 chunks +59 lines, -46 lines 0 comments Download
D media/audio/audio_file_writer.h View 1 chunk +0 lines, -45 lines 0 comments Download
M media/audio/audio_input_controller.h View 4 chunks +19 lines, -14 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 9 chunks +21 lines, -12 lines 0 comments Download
M media/audio/audio_input_controller_unittest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M media/audio/test_audio_input_controller_factory.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (22 generated)
Henrik Grunell
All: please take a look at the interfaces to begin with.
3 years, 10 months ago (2017-02-20 15:44:43 UTC) #7
Henrik Grunell
On 2017/02/20 15:44:43, Henrik Grunell wrote: > All: please take a look at the interfaces ...
3 years, 10 months ago (2017-02-20 20:45:12 UTC) #12
o1ka
On 2017/02/20 20:45:12, Henrik Grunell wrote: > On 2017/02/20 15:44:43, Henrik Grunell wrote: > > ...
3 years, 10 months ago (2017-02-21 12:02:28 UTC) #13
o1ka
To me the interfaces look generally fine. Nice cleanup! https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h File media/audio/audio_debug_file_writer.h (right): https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h#newcode29 media/audio/audio_debug_file_writer.h:29: ...
3 years, 10 months ago (2017-02-21 12:07:45 UTC) #14
Henrik Grunell
On 2017/02/21 12:02:28, o1ka wrote: > On 2017/02/20 20:45:12, Henrik Grunell wrote: > > On ...
3 years, 10 months ago (2017-02-21 12:35:21 UTC) #15
Henrik Grunell
https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h File media/audio/audio_debug_file_writer.h (right): https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h#newcode29 media/audio/audio_debug_file_writer.h:29: const media::AudioParameters& params, On 2017/02/21 12:07:44, o1ka wrote: > ...
3 years, 10 months ago (2017-02-21 14:10:52 UTC) #16
DaleCurtis
lgtm thanks! https://codereview.chromium.org/2702323002/diff/60001/media/audio/audio_debug_file_writer.cc File media/audio/audio_debug_file_writer.cc (right): https://codereview.chromium.org/2702323002/diff/60001/media/audio/audio_debug_file_writer.cc#newcode135 media/audio/audio_debug_file_writer.cc:135: // Manages the debug recording file and ...
3 years, 10 months ago (2017-02-21 18:00:58 UTC) #21
DaleCurtis
https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_input_controller.h File media/audio/audio_input_controller.h (right): https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_input_controller.h#newcode266 media/audio/audio_input_controller.h:266: scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); On 2017/02/21 at 14:10:52, Henrik Grunell wrote: ...
3 years, 10 months ago (2017-02-21 18:01:52 UTC) #22
Henrik Grunell
pfeldman@: can you please review content/. (Sorry for poking - if possible it would be ...
3 years, 10 months ago (2017-02-21 21:02:19 UTC) #23
pfeldman
lgtm
3 years, 10 months ago (2017-02-21 21:05:16 UTC) #24
Henrik Grunell
https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_input_controller.h File media/audio/audio_input_controller.h (right): https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_input_controller.h#newcode266 media/audio/audio_input_controller.h:266: scoped_refptr<base::SingleThreadTaskRunner> file_task_runner); On 2017/02/21 18:01:52, DaleCurtis wrote: > On ...
3 years, 10 months ago (2017-02-21 21:07:53 UTC) #25
Henrik Grunell
On 2017/02/21 21:05:16, pfeldman wrote: > lgtm Thanks a lot for the quick response!
3 years, 10 months ago (2017-02-21 21:10:37 UTC) #26
Henrik Grunell
https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h File media/audio/audio_debug_file_writer.h (right): https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h#newcode112 media/audio/audio_debug_file_writer.h:112: if (!ptr->file_task_runner()->DeleteSoon(FROM_HERE, ptr)) { On 2017/02/21 14:10:52, Henrik Grunell ...
3 years, 10 months ago (2017-02-22 10:47:43 UTC) #27
o1ka
On 2017/02/22 10:47:43, Henrik Grunell wrote: > https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h > File media/audio/audio_debug_file_writer.h (right): > > https://codereview.chromium.org/2702323002/diff/40001/media/audio/audio_debug_file_writer.h#newcode112 ...
3 years, 10 months ago (2017-02-22 11:00:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2702323002/80001
3 years, 10 months ago (2017-02-23 18:26:55 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 20:16:08 UTC) #38
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3d7b06a12ea2897550ef82afef84...

Powered by Google App Engine
This is Rietveld 408576698