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

Issue 2761793002: Fix null argument to base::GetProcId in RenderProcessHostImpl::CreateMessageFilters. (Closed)

Created:
3 years, 9 months ago by Henrik Grunell
Modified:
3 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, posciak+watch_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix null argument to base::GetProcId in RenderProcessHostImpl::CreateMessageFilters. Child process launcher hasn't been created at that time. This doesn't actually cause a problem or bug (currently), but the misuse should be removed. Note that the handling of debug recording should be moved to AudioManager (added todo) and then the renderer pid won't be used and all this code will be removed. Fix: * Removed renderer pid as argument to AudioInputRendererHost ctor. This is always 0 anyway. The pid is set later, so the ctor argument can simply be removed. * Added DCHECK that the pid is > 0 when used. * Ensured the pid member variabled is only accessed on IO thread. BUG=701558 Review-Url: https://codereview.chromium.org/2761793002 Cr-Commit-Position: refs/heads/master@{#458073} Committed: https://chromium.googlesource.com/chromium/src/+/df14e3f7dd968466a056279eed4839ae9a900f18

Patch Set 1 #

Patch Set 2 : Updated unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.h View 3 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 5 chunks +18 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
Henrik Grunell
3 years, 9 months ago (2017-03-20 12:40:30 UTC) #3
tommi (sloooow) - chröme
lgtm
3 years, 9 months ago (2017-03-20 12:59:23 UTC) #4
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/2761793002/1
3 years, 9 months ago (2017-03-20 13:08:34 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/389134)
3 years, 9 months ago (2017-03-20 13:14:26 UTC) #8
Henrik Grunell
Updated unit test (trivial change). clamy@: pleas review content/browser/renderer_host/render_process_host_impl.cc
3 years, 9 months ago (2017-03-20 14:05:50 UTC) #10
clamy
Thanks! content/ lgtm.
3 years, 9 months ago (2017-03-20 15:36:04 UTC) #15
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/2761793002/20001
3 years, 9 months ago (2017-03-20 15:46:29 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 15:52:19 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/df14e3f7dd968466a056279eed48...

Powered by Google App Engine
This is Rietveld 408576698