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

Unified Diff: components/mus/example/window_type_launcher/main.cc

Issue 1457173002: Revert of 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 | « no previous file | content/app/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/example/window_type_launcher/main.cc
diff --git a/components/mus/example/window_type_launcher/main.cc b/components/mus/example/window_type_launcher/main.cc
index c2e94f9836d7c025097988e3ad70f41f3d0304fa..9cecc39c632779ffab2e0066f72a0e129ef95767 100644
--- a/components/mus/example/window_type_launcher/main.cc
+++ b/components/mus/example/window_type_launcher/main.cc
@@ -61,16 +61,18 @@
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));
+
WindowTypeLauncher delegate;
{
- mojo::InterfaceRequest<mojo::Application> application_request;
- scoped_ptr<mojo::runner::RunnerConnection> connection(
- mojo::runner::RunnerConnection::ConnectToRunner(
- &application_request, mojo::ScopedMessagePipeHandle()));
+ base::MessageLoop loop(mojo::common::MessagePumpMojo::Create());
mojo::ApplicationImpl impl(&delegate, application_request.Pass());
loop.Run();
}
+
+ connection.reset();
mojo::embedder::ShutdownIPCSupport();
}
« no previous file with comments | « no previous file | content/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698