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

Unified Diff: examples/dart/wget.dart

Issue 878883002: Dart: Adjusts class Application for removal of Application/Shell Client= (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | mojo/public/dart/application.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/wget.dart
diff --git a/examples/dart/wget.dart b/examples/dart/wget.dart
index dded5a0f356937924789a24b6ccb8acc0367e2e1..e72210febb4ce37d3940fc4734422a4b7b0e85e9 100644
--- a/examples/dart/wget.dart
+++ b/examples/dart/wget.dart
@@ -17,7 +17,10 @@ class WGet extends Application {
NetworkServiceProxy _networkService;
UrlLoaderProxy _urlLoaderProxy;
- WGet.fromHandle(MojoHandle shellHandle) : super.fromHandle(shellHandle);
+ WGet.fromHandle(MojoHandle handle) : super.fromHandle(handle);
+
+ // This Application provides no services.
+ Function stubFactoryClosure() => (endpoint) => null;
void initialize(List<String> args) {
run(args);
@@ -70,8 +73,8 @@ class WGet extends Application {
}
main(List args) {
- MojoHandle shellHandle = new MojoHandle(args[0]);
+ MojoHandle appHandle = new MojoHandle(args[0]);
String url = args[1];
- var wget = new WGet.fromHandle(shellHandle);
+ var wget = new WGet.fromHandle(appHandle);
wget.listen();
}
« no previous file with comments | « no previous file | mojo/public/dart/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698