Description[Chromecast] Initialize media_resource_tracker with media_thread.
There was a race condition with the lazy initialization logic
from before, where the media_resource_tracker() lazy-getter
could be called by something on the media thread before the
call to media_resource_tracker()->InitializeMediaLib() in
cast_browser_main_parts. This would make the media resource
tracker think that the media thread was the UI thread, which
would cause the InitializeMediaLib() call to fail, thinking
it was on the wrong thread.
BUG=NONE
TEST=build cast_shell_apk with gn arg
is_cast_audio_only=true, install on Android emulator
and verify that crash does not happen on browser process
startup.
Review-Url: https://codereview.chromium.org/2811293003
Cr-Commit-Position: refs/heads/master@{#464297}
Committed: https://chromium.googlesource.com/chromium/src/+/ebc15025d19fb3a0be141495f36f36b5cd73673e
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|