Index: mojo/shell/shell_test_main.cc |
diff --git a/mojo/shell/shell_test_main.cc b/mojo/shell/shell_test_main.cc |
index 179eb4128eb5884579628ece361d5fa4bef34fce..47b6c098589cdd6ee494f8e0205a1d9085052c77 100644 |
--- a/mojo/shell/shell_test_main.cc |
+++ b/mojo/shell/shell_test_main.cc |
@@ -19,11 +19,8 @@ int main(int argc, char** argv) { |
if (command_line.HasSwitch(switches::kChildProcess)) { |
base::AtExitManager at_exit; |
- scoped_ptr<mojo::shell::ChildProcess> child_process = |
- mojo::shell::ChildProcess::Create(command_line); |
- CHECK(child_process); |
- child_process->Main(); |
- return 0; |
+ |
+ return mojo::shell::ChildProcessMain(); |
} |
base::TestSuite test_suite(argc, argv); |