Chromium Code Reviews| Index: sky/sdk/lib/widgets/widget.dart |
| diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart |
| index 7fdda3973af287e747170885bf277c8fb789218d..fa640d72aed6fce22f9c8f21fa9dbd08c28c3a5e 100644 |
| --- a/sky/sdk/lib/widgets/widget.dart |
| +++ b/sky/sdk/lib/widgets/widget.dart |
| @@ -7,8 +7,7 @@ import 'dart:collection'; |
| import 'dart:mirrors'; |
| import 'dart:sky' as sky; |
| -import 'package:mojom/intents/intents.mojom.dart'; |
| -import 'package:sky/mojo/shell.dart' as shell; |
| +import 'package:sky/mojo/activity.dart' as activity; |
|
abarth-chromium
2015/07/07 19:22:49
We should make these imports consistent.
|
| import '../base/hit_test.dart'; |
| import '../rendering/box.dart'; |
| @@ -1007,9 +1006,7 @@ abstract class App extends StatefulComponent { |
| // Override this to handle back button behavior in your app |
| // Call super.onBack() to finish the activity |
| void onBack() { |
| - ActivityManagerProxy activityManager = new ActivityManagerProxy.unbound(); |
| - shell.requestService('mojo:sky_viewer', activityManager); |
| - activityManager.ptr.finishCurrentActivity(); |
| + activity.finishCurrentActivity(); |
| } |
| } |