2019-11-01 14:19:48 +00:00
|
|
|
diff --git content/browser/child_process_launcher_helper_linux.cc content/browser/child_process_launcher_helper_linux.cc
|
2021-06-03 21:34:56 -04:00
|
|
|
index bbc1d4d057291..a7c7d75f61df6 100644
|
2019-11-01 14:19:48 +00:00
|
|
|
--- content/browser/child_process_launcher_helper_linux.cc
|
|
|
|
+++ content/browser/child_process_launcher_helper_linux.cc
|
2020-07-08 13:23:29 -04:00
|
|
|
@@ -162,7 +162,7 @@ void ChildProcessLauncherHelper::SetProcessPriorityOnLauncherThread(
|
2019-11-01 14:19:48 +00:00
|
|
|
base::File OpenFileToShare(const base::FilePath& path,
|
|
|
|
base::MemoryMappedFile::Region* region) {
|
|
|
|
base::FilePath exe_dir;
|
|
|
|
- bool result = base::PathService::Get(base::BasePathKey::DIR_EXE, &exe_dir);
|
|
|
|
+ bool result = base::PathService::Get(base::BasePathKey::DIR_ASSETS, &exe_dir);
|
|
|
|
DCHECK(result);
|
|
|
|
base::File file(exe_dir.Append(path),
|
|
|
|
base::File::FLAG_OPEN | base::File::FLAG_READ);
|
2019-03-20 12:48:05 -04:00
|
|
|
diff --git sandbox/linux/suid/client/setuid_sandbox_host.cc sandbox/linux/suid/client/setuid_sandbox_host.cc
|
2021-07-23 12:40:13 -04:00
|
|
|
index 7022a65e03578..c9aaf5d76e4a1 100644
|
2019-03-20 12:48:05 -04:00
|
|
|
--- sandbox/linux/suid/client/setuid_sandbox_host.cc
|
|
|
|
+++ sandbox/linux/suid/client/setuid_sandbox_host.cc
|
|
|
|
@@ -120,7 +120,7 @@ bool SetuidSandboxHost::IsDisabledViaEnvironment() {
|
|
|
|
base::FilePath SetuidSandboxHost::GetSandboxBinaryPath() {
|
|
|
|
base::FilePath sandbox_binary;
|
|
|
|
base::FilePath exe_dir;
|
|
|
|
- if (base::PathService::Get(base::DIR_EXE, &exe_dir)) {
|
|
|
|
+ if (base::PathService::Get(base::DIR_ASSETS, &exe_dir)) {
|
|
|
|
base::FilePath sandbox_candidate = exe_dir.AppendASCII("chrome-sandbox");
|
|
|
|
if (base::PathExists(sandbox_candidate))
|
|
|
|
sandbox_binary = sandbox_candidate;
|
2020-07-08 13:23:29 -04:00
|
|
|
diff --git ui/gl/init/gl_initializer_linux_x11.cc ui/gl/init/gl_initializer_linux_x11.cc
|
2021-04-20 18:52:34 -04:00
|
|
|
index 016046d6caa4f..116e4919cda08 100644
|
2020-07-08 13:23:29 -04:00
|
|
|
--- ui/gl/init/gl_initializer_linux_x11.cc
|
|
|
|
+++ ui/gl/init/gl_initializer_linux_x11.cc
|
2021-01-27 18:13:12 -05:00
|
|
|
@@ -82,7 +82,7 @@ bool InitializeStaticEGLInternalFromLibrary(GLImplementation implementation) {
|
2019-03-20 12:48:05 -04:00
|
|
|
if (implementation == kGLImplementationSwiftShaderGL) {
|
|
|
|
#if BUILDFLAG(ENABLE_SWIFTSHADER)
|
|
|
|
base::FilePath module_path;
|
|
|
|
- if (!base::PathService::Get(base::DIR_MODULE, &module_path))
|
|
|
|
+ if (!base::PathService::Get(base::DIR_ASSETS, &module_path))
|
|
|
|
return false;
|
|
|
|
module_path = module_path.Append("swiftshader/");
|
|
|
|
|
2021-01-27 18:13:12 -05:00
|
|
|
@@ -94,7 +94,7 @@ bool InitializeStaticEGLInternalFromLibrary(GLImplementation implementation) {
|
2019-09-04 15:13:32 +00:00
|
|
|
} else if (implementation == kGLImplementationEGLANGLE) {
|
2021-01-27 18:13:12 -05:00
|
|
|
#if !BUILDFLAG(USE_STATIC_ANGLE)
|
2019-03-20 12:48:05 -04:00
|
|
|
base::FilePath module_path;
|
|
|
|
- if (!base::PathService::Get(base::DIR_MODULE, &module_path))
|
|
|
|
+ if (!base::PathService::Get(base::DIR_ASSETS, &module_path))
|
|
|
|
return false;
|
|
|
|
|
2021-01-27 18:13:12 -05:00
|
|
|
const char kGLESv2ANGLELibraryName[] = "libGLESv2.so";
|