Implement Relaunch on Linux

This commit is contained in:
Cheng Zhao 2016-06-02 16:54:21 +09:00
parent c3fe2dae9d
commit a3f39e9d0b
7 changed files with 104 additions and 12 deletions

View file

@ -158,6 +158,7 @@ int AtomMainDelegate::RunProcess(
return -1;
}
#if defined(OS_MACOSX)
bool AtomMainDelegate::ShouldSendMachPort(const std::string& process_type) {
return process_type != kRelauncherProcess;
}
@ -166,6 +167,7 @@ bool AtomMainDelegate::DelaySandboxInitialization(
const std::string& process_type) {
return process_type == kRelauncherProcess;
}
#endif
std::unique_ptr<brightray::ContentClient>
AtomMainDelegate::CreateContentClient() {

View file

@ -27,8 +27,10 @@ class AtomMainDelegate : public brightray::MainDelegate {
int RunProcess(
const std::string& process_type,
const content::MainFunctionParams& main_function_params) override;
#if defined(OS_MACOSX)
bool ShouldSendMachPort(const std::string& process_type) override;
bool DelaySandboxInitialization(const std::string& process_type) override;
#endif
// brightray::MainDelegate:
std::unique_ptr<brightray::ContentClient> CreateContentClient() override;