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

Unified Diff: examples/recursive_content_handler/recursive_content_handler.cc

Issue 1979683002: ApplicationConnection devolution, part 2.4. (Closed) Base URL: https://github.com/domokit/mojo.git@work795_app_conn_devo_2.3-x-work794_app_conn_devo_2.2
Patch Set: so much doh 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/recursive_content_handler/recursive_content_handler.cc
diff --git a/examples/recursive_content_handler/recursive_content_handler.cc b/examples/recursive_content_handler/recursive_content_handler.cc
index 874856ccb9c5d43147d672efa1221497984cd06a..e246a1f25b143d9ac98989d783e3228a0844ed31 100644
--- a/examples/recursive_content_handler/recursive_content_handler.cc
+++ b/examples/recursive_content_handler/recursive_content_handler.cc
@@ -24,7 +24,8 @@ class RecursiveContentHandler : public ApplicationDelegate,
// Overridden from ApplicationDelegate:
bool ConfigureIncomingConnection(
ApplicationConnection* connection) override {
- connection->AddService(&content_handler_factory_);
+ connection->GetServiceProviderImpl().AddService<ContentHandler>(
+ content_handler_factory_.GetInterfaceRequestHandler());
return true;
}
« no previous file with comments | « examples/forwarding_content_handler/forwarding_content_handler.cc ('k') | mojo/application/content_handler_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698