| Index: content/common/sandbox_linux/bpf_gpu_policy_linux.cc
|
| diff --git a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
|
| index fe2f298aacf90c6e7efb5fc66f6445d327fa39c3..de14f3c857ecc32f58c81f00657b7126c6634936 100644
|
| --- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
|
| +++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
|
| @@ -48,7 +48,7 @@ namespace content {
|
|
|
| namespace {
|
|
|
| -inline bool IsChromeOS() {
|
| +inline bool IsChromeOSFoo() {
|
| #if defined(OS_CHROMEOS)
|
| return true;
|
| #else
|
| @@ -72,7 +72,7 @@ inline bool IsArchitectureI386() {
|
| #endif
|
| }
|
|
|
| -inline bool IsArchitectureArm() {
|
| +inline bool IsArchitectureArmFoo() {
|
| #if defined(__arm__) || defined(__aarch64__)
|
| return true;
|
| #else
|
| @@ -286,7 +286,7 @@ ResultExpr GpuProcessPolicy::EvaluateSyscall(int sysno) const {
|
| bool GpuProcessPolicy::PreSandboxHook() {
|
| // Warm up resources needed by the policy we're about to enable and
|
| // eventually start a broker process.
|
| - const bool chromeos_arm_gpu = IsChromeOS() && IsArchitectureArm();
|
| + const bool chromeos_arm_gpu = IsChromeOSFoo() && IsArchitectureArmFoo();
|
| // This policy is for x86 or Desktop.
|
| DCHECK(!chromeos_arm_gpu);
|
|
|
| @@ -344,7 +344,7 @@ void GpuProcessPolicy::InitGpuBrokerProcess(
|
| std::vector<BrokerFilePermission> permissions;
|
| permissions.push_back(BrokerFilePermission::ReadOnly(kDriRcPath));
|
|
|
| - if (!IsChromeOS()) {
|
| + if (!IsChromeOSFoo()) {
|
| // For shared memory.
|
| permissions.push_back(
|
| BrokerFilePermission::ReadWriteCreateUnlinkRecursive(kDevShm));
|
|
|