Remove atom_process_singleton, just use the Chrome classes directly
This commit is contained in:
parent
d020a7dc86
commit
de66888051
5 changed files with 12 additions and 87 deletions
|
@ -197,7 +197,7 @@ void App::OnFinishLaunching() {
|
|||
default_session_.Reset(isolate(), handle.ToV8());
|
||||
|
||||
if (process_singleton_.get()) {
|
||||
process_singleton_->Unlock();
|
||||
process_singleton_startup_lock_->Unlock();
|
||||
}
|
||||
|
||||
Emit("ready");
|
||||
|
@ -287,10 +287,16 @@ bool App::MakeSingleInstance(ProcessSingleton::NotificationCallback callback) {
|
|||
|
||||
if (!process_singleton_.get()) {
|
||||
auto browser = Browser::Get();
|
||||
process_singleton_.reset(new AtomProcessSingleton(userDir, callback));
|
||||
process_singleton_startup_lock_.reset(
|
||||
new ProcessSingletonStartupLock(callback));
|
||||
|
||||
process_singleton_.reset(
|
||||
new ProcessSingleton(
|
||||
userDir,
|
||||
process_singleton_startup_lock_->AsNotificationCallback()));
|
||||
|
||||
if (browser->is_ready()) {
|
||||
process_singleton_->Unlock();
|
||||
process_singleton_startup_lock_->Unlock();
|
||||
}
|
||||
|
||||
process_notify_result_ = process_singleton_->NotifyOtherProcessOrCreate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue