From a866718b49678f9fb2abb2bbfe7c6441d32fef41 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 28 Jul 2014 15:28:38 +0800 Subject: [PATCH] Initialize ProxyResolverV8 at very early phrase. In atom-shell we need to ensure node environment is initialized after the ProxyResolverV8 has been initialized. --- brightray/browser/browser_main_parts.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brightray/browser/browser_main_parts.cc b/brightray/browser/browser_main_parts.cc index e428ba4a5c..f5153a7845 100644 --- a/brightray/browser/browser_main_parts.cc +++ b/brightray/browser/browser_main_parts.cc @@ -60,6 +60,8 @@ void BrowserMainParts::PreEarlyInitialization() { #if defined(USE_AURA) && defined(USE_X11) views::LinuxUI::SetInstance(BuildGtk2UI()); #endif + + InitProxyResolverV8(); } void BrowserMainParts::ToolkitInitialized() { @@ -104,7 +106,6 @@ int BrowserMainParts::PreCreateThreads() { views::CreateDesktopScreen()); #endif - InitProxyResolverV8(); return 0; }