On Linux/ChromeOS platforms:
The implementation is just a proxy to sandbox functions.
The only caller for each is in NaCl, which already has
dependency to sandbox. So, these are deleted and inlined.
On Windows platforms:
InitializeSandbox is just a proxy, and called from only one place,
so inlined.
StartSandboxedProcess is called from two places and the logic is a
bit complex, so it is kept. Now the file is containing only the windows
specific function, renamed to sandbox_init_win.h.
All unused include was removed.
BUG=None
TEST=Ran CQ.
Change-Id: I67c96fb4bfd8c8153b310267d86d50ea824b7788
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3341787
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/main@{#954889}