Shell: Make separate binary for child processes.
To do (separately): Slim down the deps for the child process.
For comparison, on an Android Debug build, the stripped binary for the main process is ~2.4 MB whereas the child is ~850 kB (as seen in MojoShell.apk).
R=davemoore@chromium.org
Review URL: https://codereview.chromium.org/1061413002
diff --git a/shell/shell_test_main.cc b/shell/shell_test_main.cc
index bad2f07..6df2215 100644
--- a/shell/shell_test_main.cc
+++ b/shell/shell_test_main.cc
@@ -8,19 +8,14 @@
#include "base/logging.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
-#include "shell/child_main.h"
#include "shell/switches.h"
#include "testing/gtest/include/gtest/gtest.h"
int main(int argc, char** argv) {
base::CommandLine::Init(argc, argv);
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kChildProcess)) {
- base::AtExitManager at_exit;
- return mojo::shell::ChildMain();
- }
+ CHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kChildProcess));
base::TestSuite test_suite(argc, argv);
return base::LaunchUnitTests(