| Index: ash/shell/shell_main.cc
|
| ===================================================================
|
| --- ash/shell/shell_main.cc (revision 255697)
|
| +++ ash/shell/shell_main.cc (working copy)
|
| @@ -12,14 +12,21 @@
|
|
|
| #if defined(OS_WIN)
|
| int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
|
| +#else
|
| +int main(int argc, const char** argv) {
|
| +#endif
|
| + ash::shell::ShellMainDelegate delegate;
|
| + content::ContentMainParams params(&delegate);
|
| +
|
| +#if defined(OS_WIN)
|
| sandbox::SandboxInterfaceInfo sandbox_info = {0};
|
| content::InitializeSandboxInfo(&sandbox_info);
|
| - ash::shell::ShellMainDelegate delegate;
|
| - return content::ContentMain(instance, &sandbox_info, &delegate);
|
| -}
|
| + params.instance = instance;
|
| + params.sandbox_info = &sandbox_info;
|
| #else
|
| -int main(int argc, const char** argv) {
|
| - ash::shell::ShellMainDelegate delegate;
|
| - return content::ContentMain(argc, argv, &delegate);
|
| + params.argc = argc;
|
| + params.argv = argv;
|
| +#endif
|
| +
|
| + return content::ContentMain(¶ms);
|
| }
|
| -#endif
|
|
|