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

Unified Diff: shell/shell_test_main.cc

Issue 1040413003: Shell: Remove the test child stuff. (Closed) Base URL: https://github.com/domokit/mojo.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
« no previous file with comments | « shell/child_process_host_unittest.cc ('k') | shell/test_child_process.h » ('j') | 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 d13238c29388a59965d095d3dca18ba467f50403..abf609f45e602584192558b56521849f6f8d62ab 100644
--- a/shell/shell_test_main.cc
+++ b/shell/shell_test_main.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/at_exit.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/logging.h"
@@ -17,6 +18,7 @@ int main(int argc, char** argv) {
*base::CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kChildProcessType)) {
+ base::AtExitManager at_exit;
scoped_ptr<mojo::shell::ChildProcess> child_process =
mojo::shell::ChildProcess::Create(command_line);
CHECK(child_process);
« no previous file with comments | « shell/child_process_host_unittest.cc ('k') | shell/test_child_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698