Revert API change from issue 1053883002.

tl;dr is that unless the Proxy is passed, the caller doesn't know
whether it's a Stub or Proxy (or whether it's bound).

See that patch for further explanation.

BUG=
R=hansmuller@google.com

Review URL: https://codereview.chromium.org/1052693003
This commit is contained in:
Tony Gentilcore 2015-04-02 08:38:33 -07:00
parent f1ee3cc379
commit cd1ca3d88b

View File

@ -50,11 +50,11 @@ class _EmbedderImpl {
appSp.close();
}
ServiceRegistry get serviceRegistry {
ServiceRegistryProxy get serviceRegistry {
if (_serviceRegistry == null) {
_serviceRegistry = new ServiceRegistryProxy.fromHandle(
new core.MojoHandle(internals.takeServiceRegistry()));
}
return _serviceRegistry.ptr;
return _serviceRegistry;
}
}