Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #493 from brave/browser-laptop/13090
Browse files Browse the repository at this point in the history
ensure that `session-created` fires for the main browser context
  • Loading branch information
bridiver authored Feb 12, 2018
2 parents 1b37cd7 + ab4fa98 commit 9453d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atom/browser/atom_browser_main_parts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
OSCrypt::SetConfig(std::move(config));
#endif

browser_context_ = ProfileManager::GetActiveUserProfile();
brightray::BrowserMainParts::PreMainMessageLoopRun();

js_env_.reset(new JavascriptEnvironment);
js_env_->isolate()->Enter();

Expand Down Expand Up @@ -359,6 +356,9 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
node_bindings_->PrepareMessageLoop();
node_bindings_->RunMessageLoop();

browser_context_ = ProfileManager::GetActiveUserProfile();
brightray::BrowserMainParts::PreMainMessageLoopRun();

#if defined(USE_X11)
libgtkui::GtkInitFromCommandLine(*base::CommandLine::ForCurrentProcess());
#endif
Expand Down

0 comments on commit 9453d96

Please # to comment.