Index: services/nacl/nonsfi/content_handler_main_nexe.cc |
diff --git a/services/nacl/nonsfi/content_handler_main_nexe.cc b/services/nacl/nonsfi/content_handler_main_nexe.cc |
index 441cedaad6ff5ac9f176f4546ea20c7795063406..003bfbe7fcad6b56c68451e3ac778ede11b9259b 100644 |
--- a/services/nacl/nonsfi/content_handler_main_nexe.cc |
+++ b/services/nacl/nonsfi/content_handler_main_nexe.cc |
@@ -28,7 +28,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; |
} |