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

Unified Diff: examples/hello_mojo/hello_mojo_server.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
Index: examples/hello_mojo/hello_mojo_server.cc
diff --git a/examples/hello_mojo/hello_mojo_server.cc b/examples/hello_mojo/hello_mojo_server.cc
index 61a3c2eec8e74ced33969e722fb9607b409f0ae1..7e48dec06e2842dc8973b93f3dca6550b7f464f3 100644
--- a/examples/hello_mojo/hello_mojo_server.cc
+++ b/examples/hello_mojo/hello_mojo_server.cc
@@ -44,8 +44,8 @@ class HelloMojoServerApp : public mojo::ApplicationDelegate {
// |mojo::ApplicationDelegate| implementation:
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* application_connection) override {
- application_connection->GetServiceProviderImpl().AddService<HelloMojo>(
+ mojo::ServiceProviderImpl* service_provider_impl) override {
+ service_provider_impl->AddService<HelloMojo>(
[](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<HelloMojo> hello_mojo_request) {
new HelloMojoImpl(std::move(hello_mojo_request)); // Owns itself.

Powered by Google App Engine
This is Rietveld 408576698