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

Unified Diff: mojo/dart/test/bindings_generation_test.dart

Issue 968243003: Dart: Adds optional named arguments for creating bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Binding -> Stub, delegate -> impl 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: mojo/dart/test/bindings_generation_test.dart
diff --git a/mojo/dart/test/bindings_generation_test.dart b/mojo/dart/test/bindings_generation_test.dart
index e1bddef2434b9bab8d4d8973ea0e96307de02441..a83930b1aa52cff84d6feced9292b63ffffe467f 100644
--- a/mojo/dart/test/bindings_generation_test.dart
+++ b/mojo/dart/test/bindings_generation_test.dart
@@ -17,9 +17,8 @@ class ProviderImpl implements sample.Provider {
sample.ProviderStub _stub;
ProviderImpl(core.MojoMessagePipeEndpoint endpoint) {
- _stub = new sample.ProviderStub.fromEndpoint(endpoint)
- ..delegate = this
- ..listen();
+ _stub = new sample.ProviderStub.fromEndpoint(
+ endpoint, impl: this);
}
echoString(String a, Function responseFactory) =>

Powered by Google App Engine
This is Rietveld 408576698