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

Unified Diff: services/python/content_handler/content_handler_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
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 d4d6f0acd54add252d3f06e621e89697d4caa746..e266495fb354c04ccba9f434ca90552f7721c44b 100644
--- a/services/python/content_handler/content_handler_main.cc
+++ b/services/python/content_handler/content_handler_main.cc
@@ -212,14 +212,13 @@ class PythonContentHandlerApp : public ApplicationDelegate {
private:
// Overridden from ApplicationDelegate:
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
- if (IsDebug(connection->GetServiceProviderImpl()
- .connection_context()
- .connection_url)) {
- connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>(
+ bool ConfigureIncomingConnection(
+ mojo::ServiceProviderImpl* service_provider_impl) override {
+ if (IsDebug(service_provider_impl->connection_context().connection_url)) {
+ service_provider_impl->AddService<mojo::ContentHandler>(
debug_content_handler_factory_.GetInterfaceRequestHandler());
} else {
- connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>(
+ service_provider_impl->AddService<mojo::ContentHandler>(
content_handler_factory_.GetInterfaceRequestHandler());
}
return true;
« no previous file with comments | « services/prediction/prediction_service_impl.cc ('k') | services/test_service/test_request_tracker_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698