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

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: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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/cursors/webcursor_aurax11.cc ('k') | content/content.gni » ('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 ac5dc5aa0abbf8c66b4f460ec8b50eed9d40a3a2..8ab868bb395e33f1a95ca2f65e34d66b3f2deb3b 100644
--- a/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_gpu_policy_linux.cc
@@ -49,7 +49,7 @@ namespace content {
namespace {
-inline bool IsChromeOS() {
+inline bool IsChromeOSFoo() {
#if defined(OS_CHROMEOS)
return true;
#else
@@ -73,7 +73,7 @@ inline bool IsArchitectureI386() {
#endif
}
-inline bool IsArchitectureArm() {
+inline bool IsArchitectureArmFoo() {
#if defined(__arm__) || defined(__aarch64__)
return true;
#else
@@ -285,7 +285,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);
@@ -343,7 +343,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/cursors/webcursor_aurax11.cc ('k') | content/content.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698