Initialize AtExitManager before calling MainApplicationBundlePath

Some singleton calsses require the existence of AtExitManager.
This commit is contained in:
Cheng Zhao 2015-03-12 18:26:10 -07:00
parent c62c943bdb
commit 8328bce3f6

View file

@ -6,6 +6,7 @@
#include "atom/app/atom_main_delegate.h"
#include "atom/app/node_main.h"
#include "base/at_exit.h"
#include "base/i18n/icu_util.h"
#include "base/mac/bundle_locations.h"
#include "brightray/common/mac/main_application_bundle.h"
@ -21,6 +22,7 @@ int AtomMain(int argc, const char* argv[]) {
}
int AtomInitializeICUandStartNode(int argc, char *argv[]) {
base::AtExitManager atexit_manager;
base::mac::SetOverrideFrameworkBundlePath(
brightray::MainApplicationBundlePath()
.Append("Contents")