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

Issue 2460303003: Checking RendererThreadImpl for null when creating media player. (Closed)

Created:
4 years, 1 month ago by o1ka
Modified:
4 years, 1 month ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, posciak+watch_chromium.org, nasko+codewatch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Checking RendererThreadImpl for null when creating media player. Also adding CHECKs for it not being nullptr in AudioDeviceFactory. RendererThreadImpl lives in TLS, and a call to lazy_tls.Pointer()->Get()::GetAudioRendererMixerManager() ( https://cs.chromium.org/chromium/src/content/renderer/media/audio_device_factory.cc?dr=CSs&q=AudioDeviceFa&sq=package:chromium&l=76 https://cs.chromium.org/chromium/src/content/renderer/render_thread_impl.cc?q=RenderThreadImpl::current&sq=package:chromium&dr=CSs&l=1575) end up accessing |audio_renderer_mixer_manager_| of nullptr. BUG=657167 TESTING=running failed clusterfuzz test locally: test passes after the fix. Committed: https://crrev.com/64b9793077e8daf693a06eab4b98dc5a6374630d Cr-Commit-Position: refs/heads/master@{#428728}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M content/renderer/media/audio_device_factory.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
o1ka
PTAL
4 years, 1 month ago (2016-10-31 14:27:19 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/2460303003/diff/1/content/renderer/media/audio_device_factory.cc File content/renderer/media/audio_device_factory.cc (right): https://codereview.chromium.org/2460303003/diff/1/content/renderer/media/audio_device_factory.cc#newcode191 content/renderer/media/audio_device_factory.cc:191: << "GetOutputDeviceInfo() is called on a wrong thread "; ...
4 years, 1 month ago (2016-10-31 14:45:29 UTC) #6
o1ka
PTAL - fixed. https://codereview.chromium.org/2460303003/diff/1/content/renderer/media/audio_device_factory.cc File content/renderer/media/audio_device_factory.cc (right): https://codereview.chromium.org/2460303003/diff/1/content/renderer/media/audio_device_factory.cc#newcode191 content/renderer/media/audio_device_factory.cc:191: << "GetOutputDeviceInfo() is called on a ...
4 years, 1 month ago (2016-10-31 14:58:38 UTC) #9
Avi (use Gerrit)
lgtm
4 years, 1 month ago (2016-10-31 15:20:32 UTC) #10
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/2460303003/60001
4 years, 1 month ago (2016-10-31 15:22:20 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 1 month ago (2016-10-31 16:14:29 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 16:45:40 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/64b9793077e8daf693a06eab4b98dc5a6374630d
Cr-Commit-Position: refs/heads/master@{#428728}

Powered by Google App Engine
This is Rietveld 408576698