Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Unified Diff: services/dart/test/echo/main.dart

Issue 934253003: Dart Bindings: ApplicationConnection (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/dart/test/echo/main.dart
diff --git a/services/dart/test/echo/main.dart b/services/dart/test/echo/main.dart
index 073060821928a9af9e6eb4872685d28f2fece830..010aae5f161d5db25d12850e84c5d041cb4df0db 100644
--- a/services/dart/test/echo/main.dart
+++ b/services/dart/test/echo/main.dart
@@ -29,10 +29,10 @@ class EchoServiceImpl extends EchoService {
class EchoApplication extends Application {
EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle);
- void acceptConnection(String requestorUrl, ServiceProvider serviceProvider) {
- serviceProvider.registerFactory(EchoService.name, (endpoint) =>
+ void acceptConnection(String requestorUrl, ApplicationConnection connection) {
+ connection.provideService(EchoService.name, (endpoint) =>
new EchoServiceImpl(this, endpoint));
- serviceProvider.listen();
+ connection.listen();
}
}

Powered by Google App Engine
This is Rietveld 408576698