| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:mojo/application.dart'; | 7 import 'package:mojo/application.dart'; |
| 8 import 'package:mojo/bindings.dart'; | 8 import 'package:mojo/bindings.dart'; |
| 9 import 'package:mojo/core.dart'; | 9 import 'package:mojo/core.dart'; |
| 10 import 'package:_mojo_for_test_only/test/echo_service.mojom.dart'; | 10 import 'package:_mojo_for_test_only/test/echo_service.mojom.dart'; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 main(List args) { | 48 main(List args) { |
| 49 MojoHandle appHandle = new MojoHandle(args[0]); | 49 MojoHandle appHandle = new MojoHandle(args[0]); |
| 50 String url = args[1]; | 50 String url = args[1]; |
| 51 new EchoApplication.fromHandle(appHandle) | 51 new EchoApplication.fromHandle(appHandle) |
| 52 ..onError = ((_) { | 52 ..onError = ((_) { |
| 53 MojoHandle.reportLeakedHandles(); | 53 MojoHandle.reportLeakedHandles(); |
| 54 }); | 54 }); |
| 55 } | 55 } |
| OLD | NEW |