| Index: content/public/test/test_launcher.cc
|
| ===================================================================
|
| --- content/public/test/test_launcher.cc (revision 255697)
|
| +++ content/public/test/test_launcher.cc (working copy)
|
| @@ -439,22 +439,22 @@
|
|
|
| int RunContentMain(int argc, char** argv,
|
| TestLauncherDelegate* launcher_delegate) {
|
| + scoped_ptr<ContentMainDelegate> chrome_main_delegate(
|
| + launcher_delegate->CreateContentMainDelegate());
|
| + ContentMainParams params(chrome_main_delegate.get());
|
| +
|
| #if defined(OS_WIN)
|
| sandbox::SandboxInterfaceInfo sandbox_info = {0};
|
| InitializeSandboxInfo(&sandbox_info);
|
| - scoped_ptr<ContentMainDelegate> chrome_main_delegate(
|
| - launcher_delegate->CreateContentMainDelegate());
|
| - return ContentMain(GetModuleHandle(NULL),
|
| - &sandbox_info,
|
| - chrome_main_delegate.get());
|
| +
|
| + params.instance = GetModuleHandle(NULL);
|
| + params.sandbox_info = &sandbox_info;
|
| #elif defined(OS_LINUX)
|
| - scoped_ptr<ContentMainDelegate> chrome_main_delegate(
|
| - launcher_delegate->CreateContentMainDelegate());
|
| - return ContentMain(argc, const_cast<const char**>(argv),
|
| - chrome_main_delegate.get());
|
| + params.argc = argc;
|
| + params.argv = const_cast<const char**>(argv);
|
| #endif // defined(OS_WIN)
|
| - NOTREACHED();
|
| - return 0;
|
| +
|
| + return ContentMain(¶ms);
|
| }
|
|
|
| int LaunchTests(TestLauncherDelegate* launcher_delegate,
|
|
|