Index: services/nacl/sfi/content_handler_main.cc |
diff --git a/services/nacl/sfi/content_handler_main.cc b/services/nacl/sfi/content_handler_main.cc |
index a5ebec6d9cea11973f2b3b29fc006f3cfd96314f..dcca4a76da39e40244615a0e8a42712c50e56a00 100644 |
--- a/services/nacl/sfi/content_handler_main.cc |
+++ b/services/nacl/sfi/content_handler_main.cc |
@@ -105,7 +105,8 @@ class NaClContentHandler : public mojo::ApplicationDelegate, |
// Overridden from ApplicationDelegate: |
bool ConfigureIncomingConnection( |
mojo::ApplicationConnection* connection) override { |
- connection->AddService(&content_handler_factory_); |
+ connection->GetServiceProviderImpl().AddService<mojo::ContentHandler>( |
+ content_handler_factory_.GetInterfaceRequestHandler()); |
return true; |
} |