service_registry.dart should use the service registry handle instead of

shell handle.

R=@abarth,@tonygentilcore
This commit is contained in:
Alhaad Gokhale 2015-11-11 17:14:35 -08:00
parent 4b03a9eec8
commit d0cfff1688

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);