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

Unified Diff: mojo/shell/runner/child/test_native_main.cc

Issue 1801963002: Change primordial pipes to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase onto catalog CL Created 4 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 | « mojo/shell/runner/child/runner_connection.cc ('k') | mojo/shell/runner/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/child/test_native_main.cc
diff --git a/mojo/shell/runner/child/test_native_main.cc b/mojo/shell/runner/child/test_native_main.cc
index 4caddc35641b4e388d7544f339c9cc902a6edbe7..cc542158872395188e27555daef8429e15307a5b 100644
--- a/mojo/shell/runner/child/test_native_main.cc
+++ b/mojo/shell/runner/child/test_native_main.cc
@@ -16,7 +16,7 @@
#include "mojo/edk/embedder/process_delegate.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
-#include "mojo/shell/runner/child/runner_connection.h"
+#include "mojo/shell/runner/common/client_util.h"
#include "mojo/shell/runner/init.h"
namespace mojo {
@@ -58,9 +58,8 @@ int TestNativeMain(mojo::ShellClient* shell_client) {
mojo::edk::SetParentPipeHandleFromCommandLine();
base::MessageLoop loop;
- mojo::ShellConnection impl(shell_client);;
- scoped_ptr<mojo::shell::RunnerConnection> connection =
- mojo::shell::RunnerConnection::Create(&impl);
+ mojo::ShellConnection impl(
+ shell_client, mojo::shell::GetShellClientRequestFromCommandLine());
loop.Run();
mojo::edk::ShutdownIPCSupport();
« no previous file with comments | « mojo/shell/runner/child/runner_connection.cc ('k') | mojo/shell/runner/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698