[go: nahoru, domu]

Introducing content/common/sandbox_init_gpu_linux.cc

First patch in a series to split the content/gpu warmup from the
sandboxing infrastructure so that it can move out from under content.

A subsequent patch will remove the calls from bpf_* back into
/sandbox_init_gpu_linux.cc in favor of passing closures.

Freed from these dependencies, the content/common/sandbox_linux
code can move into services/service_manager/sandbox/linux in a
third patch.

Eventually, sandbox_init_gpu_linux.cc itself can move nearer to gpu/.

Also move sandbox_init_linux.cc up a level so that it can be next to
its win and mac counterparts.  This file will not move along with the
other sandbox_linux files, so move it now.

Other functional changes are:
Adding a set_broker_process() to the GpuProcessPolicy.
Removing bare new in favor of unique_ptrs.
Removing some used-once statics in favor of lambdas.


Change-Id: I66ce7d86c6c697d1704aac19c1fc5d6f8fd318be
Reviewed-on: https://chromium-review.googlesource.com/716711
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509125}
11 files changed