| Index: content/common/mojo/service_registry_impl.cc
|
| diff --git a/content/common/mojo/service_registry_impl.cc b/content/common/mojo/service_registry_impl.cc
|
| index eec7640bc300e15425f9d99c95fccdc3cab5c2a4..ac4eb7dd6bac7e6bff9ee7fb83b7412710012406 100644
|
| --- a/content/common/mojo/service_registry_impl.cc
|
| +++ b/content/common/mojo/service_registry_impl.cc
|
| @@ -10,6 +10,7 @@ namespace content {
|
|
|
| ServiceRegistryImpl::ServiceRegistryImpl()
|
| : binding_(this), weak_factory_(this) {
|
| + binding_.set_error_handler(this);
|
| }
|
|
|
| ServiceRegistryImpl::~ServiceRegistryImpl() {
|
| @@ -58,6 +59,10 @@ void ServiceRegistryImpl::ConnectToRemoteService(
|
| handle.Pass());
|
| }
|
|
|
| +bool ServiceRegistryImpl::IsBound() const {
|
| + return binding_.is_bound();
|
| +}
|
| +
|
| base::WeakPtr<ServiceRegistry> ServiceRegistryImpl::GetWeakPtr() {
|
| return weak_factory_.GetWeakPtr();
|
| }
|
| @@ -74,4 +79,8 @@ void ServiceRegistryImpl::ConnectToService(
|
| it->second.Run(client_handle.Pass());
|
| }
|
|
|
| +void ServiceRegistryImpl::OnConnectionError() {
|
| + binding_.Close();
|
| +}
|
| +
|
| } // namespace content
|
|
|