commit | eb6a38f6fa54962e1115e1776609680a087aa6f2 | [log] [tgz] |
---|---|---|
author | Alex Gough <ajgo@chromium.org> | Fri Oct 22 01:55:13 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 22 01:55:13 2021 |
tree | f29ba7e741d8daa5b5f22bb6bce4d6395b9b4817 | |
parent | 32bf58add728c0ae161590d4a2b49a7a528b41c3 [diff] |
Replace sandbox::policy::SandboxType with mojom Sandbox enum sandbox.mojom.Sandbox can now be used as the sandbox type so we replace it everywhere. The guts of the change are in //sandbox/policy/sandbox_type.h where SandboxType is now deleted, and //sandbox/policy/mojom/sandbox.mojom where sandbox types that are not already used in mojom ServiceSandbox attributes are added. Some cascading changes:- - kService wasn't implemented on Mac (as it is equivalent to kUtility). As we cannot alias enum fields in mojo like we can in C++ I have added kService for Mac. The alternative is to define platform specific ServiceSandbox attributes for all kService interfaces which seems to put this complexity in the wrong place. - sandbox_type.h included a number of buildflag headers that other files then relied on. As sandbox_type.h is no longer needed in many places and no longer needs these defines, they have been introduced where required. - sandbox::mojom::Sandbox is forward declared in a couple of headers that are widely imported, hopefully reducing the number of times the mojom.h is included but not used. - some build deps must be modified. - LibAssistantService needs a sandbox to be defined even when hosted in process, so has kNoSandbox now when enable_cros_libassistant is false. Bug: 1210301 Change-Id: I13fa4fa8cbbb3090a38806fe5532787bbdf1e2fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3213677 Reviewed-by: Charlie Reis <creis@chromium.org> Reviewed-by: Sean Topping <seantopping@chromium.org> Reviewed-by: Filip Gorski <fgorski@chromium.org> Reviewed-by: Derek Schuff <dschuff@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Tao Wu <wutao@chromium.org> Reviewed-by: Ken Rockot <rockot@google.com> Reviewed-by: Will Harris <wfh@chromium.org> Reviewed-by: Matthew Denton <mpdenton@chromium.org> Reviewed-by: David Dorwin <ddorwin@chromium.org> Commit-Queue: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#934126}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.