| Index: examples/indirect_service/integer_service.cc
|
| diff --git a/examples/indirect_service/integer_service.cc b/examples/indirect_service/integer_service.cc
|
| index 49272674b94e9cb7b70bbf799155057954234ea9..6e8b6ac967c4ce3e36b89cdc78c77c93b7ce2834 100644
|
| --- a/examples/indirect_service/integer_service.cc
|
| +++ b/examples/indirect_service/integer_service.cc
|
| @@ -29,21 +29,17 @@ class IntegerServiceImpl : public IntegerService {
|
| StrongBinding<IntegerService> binding_;
|
| };
|
|
|
| -class IntegerServiceAppDelegate : public ApplicationDelegate,
|
| - public InterfaceFactory<IntegerService> {
|
| +class IntegerServiceAppDelegate : public ApplicationDelegate {
|
| public:
|
| bool ConfigureIncomingConnection(
|
| ApplicationConnection* connection) override {
|
| - connection->AddService(this);
|
| + connection->GetServiceProviderImpl().AddService<IntegerService>(
|
| + [](const ConnectionContext& connection_context,
|
| + InterfaceRequest<IntegerService> request) {
|
| + new IntegerServiceImpl(request.Pass());
|
| + });
|
| return true;
|
| }
|
| -
|
| - private:
|
| - // InterfaceFactory<IntegerService>
|
| - void Create(const mojo::ConnectionContext& connection_context,
|
| - InterfaceRequest<IntegerService> request) override {
|
| - new IntegerServiceImpl(request.Pass());
|
| - }
|
| };
|
|
|
| } // namespace examples
|
|
|