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

Unified Diff: shell/shell_test_main.cc

Issue 1055463004: Replace ChildProcess/AppChildProcess with a simple ChildMain(). (Closed) Base URL: https://github.com/domokit/mojo.git@simplify_child_6-x-simplify_child_5
Patch Set: rebased 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
« no previous file with comments | « shell/desktop/main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/shell_test_main.cc
diff --git a/shell/shell_test_main.cc b/shell/shell_test_main.cc
index ce518d97e57f465aa600b796f09b6a792afce42b..bad2f07148a4ca965a3d4702ebb3af946164604d 100644
--- a/shell/shell_test_main.cc
+++ b/shell/shell_test_main.cc
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
-#include "shell/child_process.h"
+#include "shell/child_main.h"
#include "shell/switches.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -19,11 +19,7 @@ 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::ChildMain();
}
base::TestSuite test_suite(argc, argv);
« no previous file with comments | « shell/desktop/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698