Chromium Code Reviews| Index: examples/apptest/example_service_application.cc |
| diff --git a/examples/apptest/example_service_application.cc b/examples/apptest/example_service_application.cc |
| index 993bda38dd437c312a442fbbe40f51eefa7b49d1..5c768c3dade7b7a33dcca9bb1cddeb25f9e00ba4 100644 |
| --- a/examples/apptest/example_service_application.cc |
| +++ b/examples/apptest/example_service_application.cc |
| @@ -16,10 +16,16 @@ ExampleServiceApplication::~ExampleServiceApplication() {} |
| bool ExampleServiceApplication::ConfigureIncomingConnection( |
| ApplicationConnection* connection) { |
| - connection->AddService(&example_service_factory_); |
| + connection->AddService<ExampleService>(this); |
| return true; |
| } |
| +void ExampleServiceApplication::Create( |
| + ApplicationConnection* connection, |
| + InterfaceRequest<ExampleService> request) { |
| + new ExampleServiceImpl(request.Pass()); |
|
jamesr
2014/11/17 22:33:04
what controls the lifetime of this service?
msw
2014/11/17 23:05:32
Yikes, thank you! I changed ExampleServiceImpl::bi
|
| +} |
| + |
| } // namespace mojo |
| MojoResult MojoMain(MojoHandle shell_handle) { |