Merge pull request #321 from alhaad/fix_service_registry_handle

service_registry.dart should use the service registry handle instead of shell handle
This commit is contained in:
Adam Barth 2015-11-11 18:29:50 -08:00
commit 8a256abdde

View File

@ -8,7 +8,7 @@ import 'package:mojo_services/mojo/service_registry.mojom.dart';
import 'package:mojo/core.dart' as core;
ServiceRegistryProxy _initServiceRegistryProxy() {
core.MojoHandle serviceRegistryHandle = new core.MojoHandle(internals.takeShellProxyHandle());
core.MojoHandle serviceRegistryHandle = new core.MojoHandle(internals.takeServiceRegistry());
if (!serviceRegistryHandle.isValid)
return null;
return new ServiceRegistryProxy.fromHandle(serviceRegistryHandle);