| Index: services/dart/test/echo/main.dart
|
| diff --git a/services/dart/test/echo/main.dart b/services/dart/test/echo/main.dart
|
| index 4f93a7aae454e4aed94e1a3c49c49e16c7d65af0..85ed5e226801cada9328c60ba70428b128e1efc8 100644
|
| --- a/services/dart/test/echo/main.dart
|
| +++ b/services/dart/test/echo/main.dart
|
| @@ -15,15 +15,12 @@ class EchoServiceImpl implements EchoService {
|
|
|
| EchoServiceImpl(Application application, MojoMessagePipeEndpoint endpoint)
|
| : _application = application {
|
| - _stub = new EchoServiceStub.fromEndpoint(endpoint)
|
| - ..delegate = this
|
| - ..listen();
|
| + _stub = new EchoServiceStub.fromEndpoint(endpoint, impl: this);
|
| }
|
|
|
| echoString(String value, Function responseFactory) {
|
| if (value == "quit") {
|
| _stub.close();
|
| - _application.close();
|
| }
|
| return new Future.value(responseFactory(value));
|
| }
|
| @@ -32,7 +29,9 @@ class EchoServiceImpl implements EchoService {
|
| class EchoApplication extends Application {
|
| EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle);
|
|
|
| - void acceptConnection(String requestorUrl, ApplicationConnection connection) {
|
| + void acceptConnection(String requestorUrl,
|
| + ApplicationConnection connection,
|
| + String resolvedUrl) {
|
| connection.provideService(EchoServiceName, (endpoint) =>
|
| new EchoServiceImpl(this, endpoint));
|
| connection.listen();
|
|
|