forked from chromiumembedded/cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: Load additional binaries from DIR_ASSETS (fixes issue chromium…
…embedded#1936) This adds *.pak, locales/*.pak , chrome-sandbox, libGLESv2.so, libEGL.so and swiftshader/*.so to the list of binaries that will be loaded from the libcef.so directory instead of the executable directory by default.
- Loading branch information
1 parent
e6986dc
commit ee4b49f
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git sandbox/linux/suid/client/setuid_sandbox_host.cc sandbox/linux/suid/client/setuid_sandbox_host.cc | ||
index 784f60733032..77e4e0070edf 100644 | ||
--- 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; | ||
diff --git ui/gl/init/gl_initializer_x11.cc ui/gl/init/gl_initializer_x11.cc | ||
index e3c481b97d89..5fde4a0bb388 100644 | ||
--- ui/gl/init/gl_initializer_x11.cc | ||
+++ ui/gl/init/gl_initializer_x11.cc | ||
@@ -88,7 +88,7 @@ bool InitializeStaticEGLInternal(GLImplementation implementation) { | ||
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/"); | ||
|
||
@@ -100,7 +100,7 @@ bool InitializeStaticEGLInternal(GLImplementation implementation) { | ||
} else if (cmd->GetSwitchValueASCII(switches::kUseGL) == | ||
kGLImplementationANGLEName) { | ||
base::FilePath module_path; | ||
- if (!base::PathService::Get(base::DIR_MODULE, &module_path)) | ||
+ if (!base::PathService::Get(base::DIR_ASSETS, &module_path)) | ||
return false; | ||
|
||
glesv2_path = module_path.Append(kGLESv2ANGLELibraryName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters