| Index: mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
|
| index c2fb11a3f71ca3fcadd196cbc50992d484c05221..7e2be84cdeac5095da9c56745d8509048f74093e 100644
|
| --- a/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
|
| +++ b/mojo/dart/packages/mojo/lib/mojo/application.mojom.dart
|
| @@ -310,11 +310,14 @@ const int _Application_requestQuitName = 2;
|
|
|
|
|
| class _ApplicationServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| + dynamic getTopLevelInterface([Function responseFactory]) =>
|
| + responseFactory(null);
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| + responseFactory(null);
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| + responseFactory(null);
|
| }
|
|
|
| abstract class Application {
|
| @@ -519,8 +522,13 @@ class ApplicationStub extends bindings.Stub {
|
|
|
| int get version => 0;
|
|
|
| - service_describer.ServiceDescription get serviceDescription =>
|
| - new _ApplicationServiceDescription();
|
| + static service_describer.ServiceDescription _cachedServiceDescription;
|
| + static service_describer.ServiceDescription get serviceDescription {
|
| + if (_cachedServiceDescription == null) {
|
| + _cachedServiceDescription = new _ApplicationServiceDescription();
|
| + }
|
| + return _cachedServiceDescription;
|
| + }
|
| }
|
|
|
|
|
|
|