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

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

Issue 1452823003: Bind Application in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/runner/child/runner_connection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/child/test_native_main.cc
diff --git a/mojo/runner/child/test_native_main.cc b/mojo/runner/child/test_native_main.cc
index c9bf25391efdc3d9a9f1cf5a78413a0740f24223..a7e57b4b3d3e469e3da33b5b37d3fedeb5427280 100644
--- a/mojo/runner/child/test_native_main.cc
+++ b/mojo/runner/child/test_native_main.cc
@@ -56,19 +56,17 @@ int TestNativeMain(mojo::ApplicationDelegate* application_delegate) {
mojo::embedder::ProcessType::NONE, &process_delegate,
io_thread.task_runner().get(), mojo::embedder::ScopedPlatformHandle());
+ base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
mojo::InterfaceRequest<mojo::Application> application_request;
scoped_ptr<mojo::runner::RunnerConnection> connection(
- mojo::runner::RunnerConnection::ConnectToRunner(&application_request));
-
- base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
+ mojo::runner::RunnerConnection::ConnectToRunner(
+ &application_request, ScopedMessagePipeHandle()));
{
mojo::ApplicationImpl impl(application_delegate,
application_request.Pass());
loop.Run();
}
- connection.reset();
-
mojo::embedder::ShutdownIPCSupport();
}
« no previous file with comments | « mojo/runner/child/runner_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698