Chromium Code Reviews
DescriptionFix 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. #
Messages
Total messages: 21 (13 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||