Initialize things in the same sequence with main process
This commit is contained in:
parent
ed9579a2f7
commit
2d410ede48
5 changed files with 11 additions and 13 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "base/at_exit.h"
|
||||
#include "base/i18n/icu_util.h"
|
||||
#include "base/mac/bundle_locations.h"
|
||||
#include "base/mac/scoped_nsautorelease_pool.h"
|
||||
#include "brightray/common/mac/main_application_bundle.h"
|
||||
#include "content/public/app/content_main.h"
|
||||
|
||||
|
@ -25,6 +26,7 @@ int AtomMain(int argc, const char* argv[]) {
|
|||
|
||||
int AtomInitializeICUandStartNode(int argc, char *argv[]) {
|
||||
base::AtExitManager atexit_manager;
|
||||
base::mac::ScopedNSAutoreleasePool pool;
|
||||
base::mac::SetOverrideFrameworkBundlePath(
|
||||
brightray::MainApplicationBundlePath()
|
||||
.Append("Contents")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue