Move |media_thread| from CastBrowserMainParts to CastContentBrowserClient. |
||
Issue descriptionCastContentBrowserClient::RegisterInProcessServices(https://cs.chromium.org/chromium/src/chromecast/browser/cast_content_browser_client.cc?rcl=f36265bb589b3cecd51eb22d8e510ba4a7ba7fe7&l=679) is called when ServiceManagerContext is created (https://cs.chromium.org/chromium/src/content/browser/service_manager/service_manager_context.cc?rcl=a6767cf718daf025bd866d6c80a7583edb6b7cdd&l=602). The GetMediaTaskRunner() accesses the TaskRunner of a media thread created by CastBrowserMainParts. However, we plan to create the ServiceManagerContext in ContentMainRunnerImpl, and none of the BrowserParts are created. One solution is to let the CastContentBrowserClient owns the media thread, and creates it upon demand.
,
Oct 5
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Oct 5