Commit 09dbd9e7 authored by Adam Barth's avatar Adam Barth

Remove ServiceRegistry

We don't need this anymore now that we have Mozart. The engine recently
stopped support it also.
parent 2087bb08
...@@ -20,5 +20,3 @@ export 'src/services/image_decoder.dart'; ...@@ -20,5 +20,3 @@ export 'src/services/image_decoder.dart';
export 'src/services/image_resource.dart'; export 'src/services/image_resource.dart';
export 'src/services/keyboard.dart'; export 'src/services/keyboard.dart';
export 'src/services/print.dart'; export 'src/services/print.dart';
export 'src/services/service_registry.dart';
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui' as ui;
import 'package:mojo_services/mojo/service_registry.mojom.dart';
import 'package:mojo/core.dart' as core;
ServiceRegistryProxy _initServiceRegistryProxy() {
core.MojoHandle serviceRegistryHandle = new core.MojoHandle(ui.takeServiceRegistry());
if (!serviceRegistryHandle.isValid)
return null;
return new ServiceRegistryProxy.fromHandle(serviceRegistryHandle);
}
final ServiceRegistryProxy _serviceRegistryProxy = _initServiceRegistryProxy();
final ServiceRegistry serviceRegistry = _serviceRegistryProxy?.ptr;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment