Creates TaskScheduler and MessageLoop on main thread early

https://chromium-review.googlesource.com/c/chromium/src/+/1072387
This commit is contained in:
Jeremy Apthorp
2018-10-03 13:49:18 -07:00
parent d3a0a2300b
commit 8eb15f7554
6 changed files with 33 additions and 4 deletions

View File

@@ -4,7 +4,6 @@
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/mac/atom_application.h"
#include "atom/browser/mac/atom_application_delegate.h"
#include "base/mac/bundle_locations.h"
#include "base/mac/foundation_util.h"
@@ -13,9 +12,6 @@
namespace atom {
void AtomBrowserMainParts::PreMainMessageLoopStart() {
// Force the NSApplication subclass to be used.
[AtomApplication sharedApplication];
// Set our own application delegate.
AtomApplicationDelegate* delegate = [[AtomApplicationDelegate alloc] init];
[NSApp setDelegate:delegate];