Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1868)

Unified Diff: content/common/sandbox_linux/bpf_gpu_policy_linux.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/embedded_worker_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/embedded_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698