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

Unified Diff: examples/echo_terminal/main.cc

Issue 1979723002: ApplicationConnection devolution, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « examples/echo/echo_server.cc ('k') | examples/forwarding_content_handler/forwarding_content_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/echo_terminal/main.cc
diff --git a/examples/echo_terminal/main.cc b/examples/echo_terminal/main.cc
index 14c7c3f3993f6c87d98978282d1326a83e146a31..24be6505a93ea833fd8b4c592caa465489f192e9 100644
--- a/examples/echo_terminal/main.cc
+++ b/examples/echo_terminal/main.cc
@@ -105,12 +105,11 @@ class EchoTerminalApp
private:
// |ApplicationDelegate| override:
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- connection->GetServiceProviderImpl()
- .AddService<mojo::terminal::TerminalClient>([this](
- const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<mojo::terminal::TerminalClient>
- terminal_client_request) {
+ mojo::ServiceProviderImpl* service_provider_impl) override {
+ service_provider_impl->AddService<mojo::terminal::TerminalClient>(
+ [this](const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::terminal::TerminalClient>
+ terminal_client_request) {
terminal_clients_.AddBinding(this, terminal_client_request.Pass());
});
return true;
« no previous file with comments | « examples/echo/echo_server.cc ('k') | examples/forwarding_content_handler/forwarding_content_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698