Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: mojo/public/python/mojo_application/service_provider_impl.py

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/python/mojo_application/service_provider_impl.py
diff --git a/mojo/public/python/mojo_application/service_provider_impl.py b/mojo/public/python/mojo_application/service_provider_impl.py
deleted file mode 100644
index 761ef5fb1d426bda538d8746b310bae741bc0590..0000000000000000000000000000000000000000
--- a/mojo/public/python/mojo_application/service_provider_impl.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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.
-
-"""Python implementation of the ServiceProvider interface."""
-
-import logging
-
-import service_provider_mojom
-
-class ServiceProviderImpl(service_provider_mojom.ServiceProvider):
- def __init__(self, provider):
- self._provider = provider
- self._name_to_service_connector = {}
-
- def AddService(self, service_class, service_name=None):
- if service_name is None:
- service_name = service_class.manager.service_name
- if service_name is None:
- logging.error("No ServiceName specified for %s." % service_class.__name__)
- return
- self._name_to_service_connector[service_name] = service_class
-
- def ConnectToService(self, interface_name, pipe):
- if interface_name in self._name_to_service_connector:
- service = self._name_to_service_connector[interface_name]
- service.manager.Bind(service(), pipe)
- else:
- logging.error("Unable to find service " + interface_name)
« no previous file with comments | « mojo/public/python/mojo_application/application_runner.py ('k') | mojo/public/python/mojo_bindings/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698