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

Issue 1650133002: Start and stop RTC event logs from private extension API. (Closed)

Created:
4 years, 10 months ago by terelius-chromium
Modified:
4 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, posciak+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, Ivo-OOO until feb 6
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added functions to start and stop RTC event logs from a private extension API. The API is also protected by a command line flag. Renamed AudioDebugRecordingsCallback to TimeLimitedRecordingCallback and similar for AudioDebugRecordingsErrorCallback and AudioDebugRecordingsInfo. BUG=582469 Committed: https://crrev.com/fa159cc7961317c4a1d743d2386e19e656fef78c Cr-Commit-Position: refs/heads/master@{#386993}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Create a new handler for the internal WebRTC logs instead of using WebRTCLoggingHandlerHost. #

Total comments: 11

Patch Set 3 : Drop MessageFilter, add keys for use in GetUserData() #

Total comments: 2

Patch Set 4 : Split the logging handler into one for audio recordings and one for event logs #

Total comments: 43

Patch Set 5 : Comments from grunell and guido #

Patch Set 6 : Unused includes #

Total comments: 8

Patch Set 7 : Test that the event log actually produces some content #

Total comments: 9

Patch Set 8 : More comments #

Patch Set 9 : Fix bug in current time-limited audio debug recordings. #

Total comments: 30

Patch Set 10 : Some comments from tommi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+984 lines, -186 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -2 lines 0 comments Download
A chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +265 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h View 1 2 3 4 5 6 5 chunks +34 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc View 1 2 3 4 5 6 7 8 9 8 chunks +87 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api_stub.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/media/audio_debug_recordings_handler.h View 1 2 3 4 5 6 7 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/browser/media/audio_debug_recordings_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +156 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc_event_log_handler.h View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc_event_log_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.h View 1 2 3 4 5 6 7 8 9 5 chunks +7 lines, -48 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.cc View 1 2 3 4 5 6 7 8 9 5 chunks +4 lines, -106 lines 0 comments Download
M chrome/browser/resources/hangout_services/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/hangout_services/thunk.js View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webrtc_logging_private.idl View 1 2 3 4 5 6 7 8 9 2 chunks +32 lines, -12 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (8 generated)
terelius-chromium
Please take a look before I submit this CL to OWNERS.
4 years, 10 months ago (2016-01-29 16:36:01 UTC) #3
Henrik Grunell
Started with high level review. Main concern is that WebRtcLoggingHandlerHost does too much. https://codereview.chromium.org/1650133002/diff/1/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_apitest.cc File ...
4 years, 10 months ago (2016-02-01 13:58:13 UTC) #4
Guido Urdaneta
On 2016/02/01 13:58:13, Henrik Grunell wrote: > Started with high level review. Main concern is ...
4 years, 10 months ago (2016-02-02 13:23:05 UTC) #5
Guido Urdaneta
+tommi
4 years, 10 months ago (2016-02-02 13:24:20 UTC) #7
Henrik Grunell
On 2016/02/02 13:23:05, Guido Urdaneta wrote: > On 2016/02/01 13:58:13, Henrik Grunell wrote: > > ...
4 years, 10 months ago (2016-02-02 13:32:40 UTC) #8
chromium-reviews
Right, so no change in the Javascript layer, but we instantiate the new class in ...
4 years, 10 months ago (2016-02-02 13:44:35 UTC) #9
Henrik Grunell
On 2016/02/02 13:44:35, chromium-reviews wrote: > Right, so no change in the Javascript layer, but ...
4 years, 10 months ago (2016-02-03 08:37:25 UTC) #10
Henrik Grunell
https://codereview.chromium.org/1650133002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1650133002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode936 chrome/browser/chrome_content_browser_client.cc:936: host->SetUserData(host, I think this will override the previous call ...
4 years, 10 months ago (2016-02-03 08:37:32 UTC) #11
terelius-chromium
https://codereview.chromium.org/1650133002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1650133002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode936 chrome/browser/chrome_content_browser_client.cc:936: host->SetUserData(host, On 2016/02/03 08:37:32, Henrik Grunell wrote: > I ...
4 years, 10 months ago (2016-02-05 09:27:37 UTC) #12
Henrik Grunell
Tommi, would you mind taking over looking at this? The ownership and naming of the ...
4 years, 10 months ago (2016-02-05 10:05:44 UTC) #13
tommi (sloooow) - chröme
looks like there will be some big changes coming. can you ping back when current ...
4 years, 10 months ago (2016-02-05 11:09:00 UTC) #14
terelius-chromium
Yes, there are several things to be cleaned up. However, I don't think it is ...
4 years, 10 months ago (2016-02-05 13:32:53 UTC) #15
tommi (sloooow) - chröme
Is there some doc you can point us to so that we can help answer ...
4 years, 10 months ago (2016-02-05 13:45:22 UTC) #16
terelius-chromium
There is a short design doc, but it won't help with these questions. https://docs.google.com/document/d/1Md8FITMEOFow8pVbz7ZWjoda3uD5FcO4TXP_JMy37Vw/ The ...
4 years, 10 months ago (2016-02-08 10:36:16 UTC) #17
terelius1
https://codereview.chromium.org/1650133002/diff/1/chrome/browser/media/webrtc_logging_handler_host.h File chrome/browser/media/webrtc_logging_handler_host.h (right): https://codereview.chromium.org/1650133002/diff/1/chrome/browser/media/webrtc_logging_handler_host.h#newcode178 chrome/browser/media/webrtc_logging_handler_host.h:178: // Starts an RTC event log. The call writes ...
4 years, 10 months ago (2016-02-16 20:09:12 UTC) #18
Henrik Grunell
https://codereview.chromium.org/1650133002/diff/40001/chrome/browser/media/webrtc_internal_log_handler_host.h File chrome/browser/media/webrtc_internal_log_handler_host.h (right): https://codereview.chromium.org/1650133002/diff/40001/chrome/browser/media/webrtc_internal_log_handler_host.h#newcode23 chrome/browser/media/webrtc_internal_log_handler_host.h:23: class WebRtcInternalLogHandlerHost I'd prefer separate classes for the audio ...
4 years, 10 months ago (2016-02-17 12:33:02 UTC) #19
terelius-chromium
https://codereview.chromium.org/1650133002/diff/40001/chrome/browser/media/webrtc_internal_log_handler_host.h File chrome/browser/media/webrtc_internal_log_handler_host.h (right): https://codereview.chromium.org/1650133002/diff/40001/chrome/browser/media/webrtc_internal_log_handler_host.h#newcode23 chrome/browser/media/webrtc_internal_log_handler_host.h:23: class WebRtcInternalLogHandlerHost On 2016/02/17 12:33:02, Henrik Grunell wrote: > ...
4 years, 10 months ago (2016-02-22 09:28:55 UTC) #20
Guido Urdaneta
Only nits from me. https://codereview.chromium.org/1650133002/diff/60001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc File chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc (right): https://codereview.chromium.org/1650133002/diff/60001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc#newcode404 chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc:404: scoped_refptr<AudioDebugRecordingsHandler> audio_debug_recrdings_handler( typo: recrdings -> ...
4 years, 10 months ago (2016-02-23 13:57:34 UTC) #21
Henrik Grunell
Thanks a lot for refactoring/moving out audio debug recording code! Getting closer... https://codereview.chromium.org/1650133002/diff/1/chrome/common/extensions/api/webrtc_logging_private.idl File chrome/common/extensions/api/webrtc_logging_private.idl ...
4 years, 10 months ago (2016-02-23 15:29:11 UTC) #22
terelius-chromium
https://codereview.chromium.org/1650133002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1650133002/diff/60001/chrome/browser/chrome_content_browser_client.cc#newcode935 chrome/browser/chrome_content_browser_client.cc:935: AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey, On 2016/02/23 15:29:10, Henrik Grunell wrote: > Looks ...
4 years, 9 months ago (2016-03-02 10:01:10 UTC) #23
Henrik Grunell
Finally I got around to review this again. Only minor comments now. https://codereview.chromium.org/1650133002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc ...
4 years, 9 months ago (2016-03-10 21:33:34 UTC) #24
terelius-chromium
I've added a test which checks that the event log actually writes to the file ...
4 years, 9 months ago (2016-03-18 16:45:58 UTC) #25
tommi (sloooow) - chröme
On 2016/03/18 16:45:58, terelius2 wrote: > I've added a test which checks that the event ...
4 years, 9 months ago (2016-03-19 02:06:11 UTC) #26
Henrik Grunell
Great with the new test! Comments on it. There's also a previous comments I had ...
4 years, 9 months ago (2016-03-24 09:36:22 UTC) #27
terelius-chromium
https://codereview.chromium.org/1650133002/diff/100001/chrome/browser/media/audio_debug_recordings_handler.cc File chrome/browser/media/audio_debug_recordings_handler.cc (right): https://codereview.chromium.org/1650133002/diff/100001/chrome/browser/media/audio_debug_recordings_handler.cc#newcode48 chrome/browser/media/audio_debug_recordings_handler.cc:48: // TODO: Can we check that we dont hold ...
4 years, 9 months ago (2016-03-24 16:21:23 UTC) #28
Henrik Grunell
lgtm https://codereview.chromium.org/1650133002/diff/120001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc File chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc (right): https://codereview.chromium.org/1650133002/diff/120001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc#newcode181 chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc:181: while (!base::PathExists(full_file_name)) { On 2016/03/24 16:21:23, terelius2 wrote: ...
4 years, 8 months ago (2016-03-31 10:58:47 UTC) #29
terelius-chromium
Guido, do you have any more comments? Tommi, could you review chrome/browser/media/ (and whatever else ...
4 years, 8 months ago (2016-04-04 12:24:06 UTC) #31
Guido Urdaneta
lgtm. Nice work with the test!
4 years, 8 months ago (2016-04-04 12:35:43 UTC) #32
Finnur
Owners LGTM for chrome/common/extensions
4 years, 8 months ago (2016-04-04 14:01:27 UTC) #33
Mark P
histograms lgtm
4 years, 8 months ago (2016-04-04 17:21:34 UTC) #34
tommi (sloooow) - chröme
lg mostly but would like to avoid using Sleep() in the test code. Can we ...
4 years, 8 months ago (2016-04-07 12:44:30 UTC) #35
terelius-chromium
https://codereview.chromium.org/1650133002/diff/160001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc File chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc (right): https://codereview.chromium.org/1650133002/diff/160001/chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc#newcode42 chrome/browser/extensions/api/webrtc_logging_private/webrtc_event_log_apitest.cc:42: const int kExpectedConsumerId = 1; On 2016/04/07 12:44:29, tommi-sloooow ...
4 years, 8 months ago (2016-04-13 08:52:05 UTC) #36
tommi (sloooow) - chröme
lgtm. thanks for updating the loop. Based on offline discussion, we don't expect to hit ...
4 years, 8 months ago (2016-04-13 14:45:16 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650133002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650133002/180001
4 years, 8 months ago (2016-04-13 15:06:00 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-13 15:13:12 UTC) #42
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 15:15:01 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fa159cc7961317c4a1d743d2386e19e656fef78c
Cr-Commit-Position: refs/heads/master@{#386993}

Powered by Google App Engine
This is Rietveld 408576698