Fix invoking ContentMain.

This commit is contained in:
Cheng Zhao 2014-06-30 11:44:05 +08:00
parent e0f263950e
commit d5b2a5af26
2 changed files with 13 additions and 3 deletions

View file

@ -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