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

Issue 140843007: Implement browser-side logging to WebRtc log (Closed)

Created:
6 years, 11 months ago by vrk (LEFT CHROMIUM)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org, Jói, no longer working on chromium, juberti2
Visibility:
Public.

Description

Implement browser-side logging to WebRtc log This adds a logging callback to RenderProcessHost and also adds logging for device enumeration in the browser process. BUG=332261 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247164

Patch Set 1 : . #

Total comments: 29

Patch Set 2 : responses to CR #

Total comments: 2

Patch Set 3 : respond to cr #

Total comments: 17

Patch Set 4 : response to CR #

Patch Set 5 : rebase and fix test #

Patch Set 6 : . #

Total comments: 34

Patch Set 7 : response to CR #

Patch Set 8 : add a few more log messages #

Patch Set 9 : fix windows compile #

Patch Set 10 : . #

Patch Set 11 : fix cros and android compile #

Patch Set 12 : fix android_aosp #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -41 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +97 lines, -1 line 2 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_impl.cc View 1 2 3 4 5 6 4 chunks +15 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/video_capture_device.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
vrk (LEFT CHROMIUM)
jam: render host stuff grunell: everything This is the "finished" version of Henrik's CL131793002. The ...
6 years, 11 months ago (2014-01-17 02:08:28 UTC) #1
jam
https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/render_process_host_impl.cc#newcode1535 content/browser/renderer_host/render_process_host_impl.cc:1535: base::Bind(webrtc_log_message_callback_, message)); how do we guarantee that the callback ...
6 years, 11 months ago (2014-01-17 05:47:44 UTC) #2
Henrik Grunell
John, I think you had a comment in an offline mail thread about not having ...
6 years, 11 months ago (2014-01-17 08:51:25 UTC) #3
Jói
+perkj to review the MediaStreamManager bits.
6 years, 11 months ago (2014-01-17 09:05:06 UTC) #4
perkj_chrome
https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode142 content/browser/renderer_host/media/audio_input_device_manager.cc:142: MediaStreamManager::AddLogMessage( Why do we have to log here? Why ...
6 years, 11 months ago (2014-01-20 11:07:07 UTC) #5
Henrik Grunell
Just a little follow up on the formatting detail. :) https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/media_stream_manager.cc#newcode1316 ...
6 years, 11 months ago (2014-01-20 16:23:07 UTC) #6
vrk (LEFT CHROMIUM)
Addressed all comments, PTAL. Since the device enumeration logging could all be done in MediaStreamManager, ...
6 years, 11 months ago (2014-01-22 02:25:41 UTC) #7
jam
lgtm for all files without "media" in the path, the rest I defer to others ...
6 years, 11 months ago (2014-01-22 03:20:00 UTC) #8
vrk (LEFT CHROMIUM)
https://codereview.chromium.org/140843007/diff/200001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/140843007/diff/200001/content/browser/renderer_host/render_process_host_impl.cc#newcode1524 content/browser/renderer_host/render_process_host_impl.cc:1524: void RenderProcessHostImpl::SetWebRtcLogMessageCallback( On 2014/01/22 03:20:01, jam wrote: > nit: ...
6 years, 11 months ago (2014-01-22 04:38:06 UTC) #9
Henrik Grunell
https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/media_stream_manager.h File content/browser/renderer_host/media/media_stream_manager.h (right): https://codereview.chromium.org/140843007/diff/70001/content/browser/renderer_host/media/media_stream_manager.h#newcode192 content/browser/renderer_host/media/media_stream_manager.h:192: // Adds |message| to native logs for outstanding device ...
6 years, 11 months ago (2014-01-22 07:05:22 UTC) #10
perkj_chrome
https://codereview.chromium.org/140843007/diff/300001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/140843007/diff/300001/content/browser/renderer_host/media/media_stream_manager.cc#newcode1405 content/browser/renderer_host/media/media_stream_manager.cc:1405: std::stringstream devices_msg; On 2014/01/22 07:05:24, Henrik Grunell wrote: > ...
6 years, 11 months ago (2014-01-22 10:03:28 UTC) #11
vrk (LEFT CHROMIUM)
Responding to the major comments only right now. Per, let's chat about this f2f. I ...
6 years, 11 months ago (2014-01-22 18:30:29 UTC) #12
vrk (LEFT CHROMIUM)
Addressed all comments, PTAL. Chatted with Per offline and I looked deeper into filtering by ...
6 years, 11 months ago (2014-01-23 21:46:32 UTC) #13
perkj_chrome
lgtm with small nits and a recommendation to test with flash running in one tab ...
6 years, 11 months ago (2014-01-24 09:15:09 UTC) #14
no longer working on chromium
driven-by. I have a strong concern on the change in MediaStreamManager, it is lots of ...
6 years, 11 months ago (2014-01-24 09:54:37 UTC) #15
no longer working on chromium
https://codereview.chromium.org/140843007/diff/910001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/140843007/diff/910001/content/browser/renderer_host/media/media_stream_manager.cc#newcode1052 content/browser/renderer_host/media/media_stream_manager.cc:1052: // Cache is valid, so log the cached devices. ...
6 years, 11 months ago (2014-01-24 10:36:17 UTC) #16
tommi (sloooow) - chröme
https://codereview.chromium.org/140843007/diff/910001/content/browser/renderer_host/media/desktop_capture_device.cc File content/browser/renderer_host/media/desktop_capture_device.cc (right): https://codereview.chromium.org/140843007/diff/910001/content/browser/renderer_host/media/desktop_capture_device.cc#newcode168 content/browser/renderer_host/media/desktop_capture_device.cc:168: std::stringstream log("Failed to capture a frame."); stringstream is overkill, ...
6 years, 11 months ago (2014-01-24 12:34:53 UTC) #17
tommi (sloooow) - chröme
Given that the biggest ask for me is simple to do (remove logging of device ...
6 years, 11 months ago (2014-01-24 15:10:17 UTC) #18
tommi (sloooow) - chröme
On 2014/01/24 15:10:17, tommi wrote: > Given that the biggest ask for me is simple ...
6 years, 11 months ago (2014-01-24 15:11:13 UTC) #19
Henrik Grunell
LGTM if you fix outstanding comments by other reviewers.
6 years, 11 months ago (2014-01-24 20:17:46 UTC) #20
vrk (LEFT CHROMIUM)
Thanks for reviewing! Addressed all comments. Per - I tested running a pepper flash webcam ...
6 years, 11 months ago (2014-01-25 00:50:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/140843007/1200001
6 years, 11 months ago (2014-01-25 01:59:28 UTC) #22
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=109546
6 years, 11 months ago (2014-01-25 02:51:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/140843007/1200001
6 years, 11 months ago (2014-01-25 06:34:42 UTC) #24
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=142930
6 years, 11 months ago (2014-01-25 07:15:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/140843007/1200001
6 years, 11 months ago (2014-01-25 12:06:41 UTC) #26
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=109580
6 years, 11 months ago (2014-01-25 12:48:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/140843007/140002
6 years, 11 months ago (2014-01-25 19:13:21 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=194919
6 years, 11 months ago (2014-01-25 20:01:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/140843007/1710003
6 years, 11 months ago (2014-01-25 21:06:39 UTC) #30
commit-bot: I haz the power
Change committed as 247164
6 years, 11 months ago (2014-01-26 10:05:32 UTC) #31
Henrik Grunell
Just two questions to follow up on this CL. Also made a CL with corrections ...
6 years, 11 months ago (2014-01-27 08:33:17 UTC) #32
Henrik Grunell
6 years, 10 months ago (2014-02-05 11:29:17 UTC) #33
Message was sent while issue was closed.
On 2014/01/27 08:33:17, Henrik Grunell wrote:
> Just two questions to follow up on this CL.
> 
> Also made a CL with corrections of some comments:
> https://codereview.chromium.org/148183002/
> 
>
https://codereview.chromium.org/140843007/diff/1710003/content/browser/render...
> File content/browser/renderer_host/media/media_stream_manager.cc (right):
> 
>
https://codereview.chromium.org/140843007/diff/1710003/content/browser/render...
> content/browser/renderer_host/media/media_stream_manager.cc:122:
> media_stream_manager()->AddLogMessageOnUIThread(message);
> Is msm guaranteed to always be valid here?
> 
>
https://codereview.chromium.org/140843007/diff/1710003/content/browser/render...
> content/browser/renderer_host/media/media_stream_manager.cc:1546: //
TODO(vrk):
> Figure out what's going on here and fix.
> why not use
> #if defined(ENABLE_WEBRTC)
> ? :)
> 
> Should probably wrap more of the code added in this CL inside that define.

Ping Victoria. Can you follow up on these two questions?

Powered by Google App Engine
This is Rietveld 408576698