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

Unified Diff: services/python/content_handler/content_handler_main.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
« no previous file with comments | « services/nacl/sfi/content_handler_main.cc ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/python/content_handler/content_handler_main.cc
diff --git a/services/python/content_handler/content_handler_main.cc b/services/python/content_handler/content_handler_main.cc
index be6897dbf8ad6e46a44edf5e62256073d7ece187..d4d6f0acd54add252d3f06e621e89697d4caa746 100644
--- a/services/python/content_handler/content_handler_main.cc
+++ b/services/python/content_handler/content_handler_main.cc
@@ -215,10 +215,13 @@ class PythonContentHandlerApp : public ApplicationDelegate {
bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
if (IsDebug(connection->GetServiceProviderImpl()
.connection_context()
- .connection_url))
- connection->AddService(&debug_content_handler_factory_);
- else
- connection->AddService(&content_handler_factory_);
+ .connection_url)) {
+ connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>(
+ debug_content_handler_factory_.GetInterfaceRequestHandler());
+ } else {
+ connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>(
+ content_handler_factory_.GetInterfaceRequestHandler());
+ }
return true;
}
« no previous file with comments | « services/nacl/sfi/content_handler_main.cc ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698