commit | fc95501fb29e3e7487fff98c17e6aaba1046b330 | [log] [tgz] |
---|---|---|
author | Xi Han <hanxi@google.com> | Thu May 10 21:24:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 10 21:24:41 2018 |
tree | 2d261f2b80346c37dd515ff2418b0694bf5b214d | |
parent | 13e8011c812d7b42b072039b0b859ee82aaae055 [diff] |
Create BrowserThread::IO thread before browser main loop to start ServiceManager. We need a thread to post/execute tasks when starting the ServiceManager. This thread needs to be created before the browser main loop is initialized, and will be registered as the BrowserThread::IO thread which is currently used by ServiceManager connections. The creation of such a thread is moved to service_manager::main via MainDelegate::CreateIOThreadAndGetTaskRunner(). Since it requires no thread created before calling fork() on posix, we also move the setup of sandbox before creating the IO thread. Bug: 740677, 729596 Change-Id: I23ef57eb52bfb1eb363682dadf98c571c12afcd1 Reviewed-on: https://chromium-review.googlesource.com/969098 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#557680}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .