forked from chromiumembedded/cef
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More flexible deployment outside of a common App Bundle on MacOS
Generally, CEF/JCEF applications need to be deployed with the helper app and the framework inside an application bundle on MacOS. This strict directory structure is necessary because the dynamic CEF loading mechanism relies on it, and because the Mach IPC registration mechanism for IPC channels between the helper process and the master process uses the outer bundle ID for identification. This patch implements fixes/workarounds for both of these problems, effectively relaxing the requirement and allowing effective wrapping of JCEF and CEF on MacOS within a JAR that extracts the files at runtime to a temporary location.
- Loading branch information
Showing
4 changed files
with
43 additions
and
14 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
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,13 @@ | ||
diff --git base/mac/mach_port_broker.mm base/mac/mach_port_broker.mm | ||
index 6d9fec5ab6ec..18e43e17b8c2 100644 | ||
--- base/mac/mach_port_broker.mm | ||
+++ base/mac/mach_port_broker.mm | ||
@@ -74,7 +74,7 @@ | ||
// In child processes, use the parent's pid. | ||
const pid_t pid = is_child ? getppid() : getpid(); | ||
return base::StringPrintf( | ||
- "%s.%s.%d", base::mac::BaseBundleID(), name.c_str(), pid); | ||
+ "%s.%s.%d", "cef", name.c_str(), pid); | ||
} | ||
|
||
mach_port_t MachPortBroker::TaskForPid(base::ProcessHandle pid) const { |