-
Kenichi Ishibashi authored
URLLoaderThrottleProviderImpl and WebSocketHandshakeThrottleProviderImpl used content::RenderThread::Get()->GetConnector() to connect mojo interfaces. This prevented us from creating these throttle providers on the IO thread. To allow these throttle providers can be constructed without going to the main thread, create a clone of the main thread's connector in ChromeContentRendererClient::RenderThreadStarted(). The cloned connector is bound to the IO thread and will be used to create throttle providers for off-the-main-thread service worker startup. Bug: 989781 Change-Id: Ic4d20813e18c6238700545946cbcfd6f4534d974 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724754Reviewed-by:
Scott Violet <sky@chromium.org> Reviewed-by:
Ken Rockot <rockot@google.com> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#684169}
28032e00