Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: mojo/shell/shell_test_main.cc

Issue 1065433002: Simplify some mojo_shell code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698