0

Fix FixedPolicy in docs to TargetConfig

Change-Id: If15f377b3dee7b644fa5ae27668bac15cd738053
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4298355
Commit-Queue: Alex Gough <ajgo@chromium.org>
Reviewed-by: James Forshaw <forshaw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1111278}
This commit is contained in:
Alex Gough
2023-03-01 00:08:24 +00:00
committed by Chromium LUCI CQ
parent 5d3473945f
commit 70aa988d43
2 changed files with 6 additions and 6 deletions

@ -29,10 +29,10 @@ class SandboxDelegate {
#if BUILDFLAG(IS_WIN)
// Returns a tag for the sandbox. All targets with the same tag will share
// their FixedPolicy configuration - the delegate can call
// FixedPolicy::IsFixed() to skip setting this configuration after the first
// such policy has been configured. Provide an empty string to force every
// policy to be unique.
// their TargetConfig configuration - the delegate can call
// TargetConfig::IsConfigured() to skip setting this configuration after the
// first such policy has been configured. Provide an empty string to force
// every policy to be unique.
virtual std::string GetSandboxTag() = 0;
// Whether to disable the default policy specified in
@ -44,7 +44,7 @@ class SandboxDelegate {
virtual bool GetAppContainerId(std::string* appcontainer_id) = 0;
// Called right before spawning the process. Returns false on failure.
// Methods in FixedPolicy only need to be called if IsFixed() returns
// Methods in TargetConfig only need to be called if IsConfigured() returns
// false.
virtual bool PreSpawnTarget(TargetPolicy* policy) = 0;

@ -215,7 +215,7 @@ class PolicyBase final : public TargetPolicy {
const base::HandlesToInheritVector& GetHandlesBeingShared();
private:
// BrokerServicesBase is allowed to set shared backing fields for FixedPolicy.
// BrokerServicesBase is allowed to set shared backing fields for TargetConfig.
friend class sandbox::BrokerServicesBase;
// Allow PolicyDiagnostic to snapshot PolicyBase for diagnostics.
friend class PolicyDiagnostic;