| Index: sky/sdk/lib/mojo/asset_bundle.dart
|
| diff --git a/sky/sdk/lib/mojo/asset_bundle.dart b/sky/sdk/lib/mojo/asset_bundle.dart
|
| index 7aa49c48977ce17a7ad626311d4ec14fbaf0ba6c..7d7059dae620140b63ab1237da375a218f7c7373 100644
|
| --- a/sky/sdk/lib/mojo/asset_bundle.dart
|
| +++ b/sky/sdk/lib/mojo/asset_bundle.dart
|
| @@ -4,6 +4,7 @@
|
|
|
| import 'dart:async';
|
| import 'dart:sky' as sky;
|
| +import "dart:sky.internals" as internals;
|
|
|
| import 'package:mojo/core.dart' as core;
|
| import 'package:mojom/mojo/asset_bundle/asset_bundle.mojom.dart';
|
| @@ -66,3 +67,15 @@ class MojoAssetBundle extends AssetBundle {
|
| });
|
| }
|
| }
|
| +
|
| +AssetBundle _initRootBundle() {
|
| + try {
|
| + AssetBundleProxy bundle = new AssetBundleProxy.fromHandle(
|
| + new core.MojoHandle(internals.takeRootBundleHandle()));
|
| + return new MojoAssetBundle(bundle);
|
| + } catch (e) {
|
| + return null;
|
| + }
|
| +}
|
| +
|
| +final AssetBundle rootBundle = _initRootBundle();
|
|
|