Index: services/dart/content_handler_main.cc |
diff --git a/services/dart/content_handler_main.cc b/services/dart/content_handler_main.cc |
index a8c6d2a350cbab83ec165fe587b0eba4216e95ba..44acb667a31cb4232ebb1384301cd53b5e786524 100644 |
--- a/services/dart/content_handler_main.cc |
+++ b/services/dart/content_handler_main.cc |
@@ -242,9 +242,11 @@ class DartContentHandlerApp : public mojo::ApplicationDelegate { |
.connection_context() |
.connection_url); |
if (default_strict_ || strict) { |
- connection->AddService(&strict_content_handler_factory_); |
+ connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>( |
+ strict_content_handler_factory_.GetInterfaceRequestHandler()); |
} else { |
- connection->AddService(&content_handler_factory_); |
+ connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>( |
+ content_handler_factory_.GetInterfaceRequestHandler()); |
} |
return true; |
} |