|
@@ -1011,8 +1011,6 @@ bool App::RequestSingleInstanceLock(gin::Arguments* args) {
|
|
|
if (HasSingleInstanceLock())
|
|
|
return true;
|
|
|
|
|
|
- std::string program_name = electron::Browser::Get()->GetName();
|
|
|
-
|
|
|
base::FilePath user_dir;
|
|
|
base::PathService::Get(chrome::DIR_USER_DATA, &user_dir);
|
|
|
// The user_dir may not have been created yet.
|
|
@@ -1023,6 +1021,7 @@ bool App::RequestSingleInstanceLock(gin::Arguments* args) {
|
|
|
blink::CloneableMessage additional_data_message;
|
|
|
args->GetNext(&additional_data_message);
|
|
|
#if BUILDFLAG(IS_WIN)
|
|
|
+ const std::string program_name = electron::Browser::Get()->GetName();
|
|
|
bool app_is_sandboxed =
|
|
|
IsSandboxEnabled(base::CommandLine::ForCurrentProcess());
|
|
|
process_singleton_ = std::make_unique<ProcessSingleton>(
|