diff --git a/atom/app/atom_library_main.cc b/atom/app/atom_library_main.cc index dcf3ae5e32ba..734f9790c1cd 100644 --- a/atom/app/atom_library_main.cc +++ b/atom/app/atom_library_main.cc @@ -10,6 +10,9 @@ #if defined(OS_MACOSX) int AtomMain(int argc, const char* argv[]) { atom::AtomMainDelegate delegate; - return content::ContentMain(content::ContentMainParams(&delegate)); + content::ContentMainParams params(&delegate); + params.argc = argc; + params.argv = argv; + return content::ContentMain(params); } #endif // OS_MACOSX diff --git a/atom/app/atom_main.cc b/atom/app/atom_main.cc index 082913620b03..04cf78d70356 100644 --- a/atom/app/atom_main.cc +++ b/atom/app/atom_main.cc @@ -98,7 +98,11 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t* cmd, int) { sandbox::SandboxInterfaceInfo sandbox_info = {0}; content::InitializeSandboxInfo(&sandbox_info); atom::AtomMainDelegate delegate; - return content::ContentMain(content::ContentMainParams(&delegate)); + + content::ContentMainParams params(&delegate); + params.instance = instance; + params.sandbox_info = &sandbox_info; + return content::ContentMain(params); } #elif defined(OS_LINUX) // defined(OS_WIN) @@ -109,7 +113,10 @@ int main(int argc, const char* argv[]) { return node::Start(argc, const_cast(argv)); atom::AtomMainDelegate delegate; - return content::ContentMain(content::ContentMainParams(&delegate)); + content::ContentMainParams params(&delegate); + params.argc = argc; + params.argv = argv; + return content::ContentMain(params); } #else // defined(OS_LINUX)