| 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 c1df33a1bd51ba0506d79c7da4ddd843e8f05669..2303f3b97236bc8c416a48e3b9f1a1b4d163f2e9 100644
|
| --- a/content/common/mojo/service_registry_impl.cc
|
| +++ b/content/common/mojo/service_registry_impl.cc
|
| @@ -9,11 +9,7 @@
|
| namespace content {
|
|
|
| ServiceRegistryImpl::ServiceRegistryImpl()
|
| - : binding_(this), weak_factory_(this) {
|
| - binding_.set_connection_error_handler(
|
| - base::Bind(&ServiceRegistryImpl::OnConnectionError,
|
| - base::Unretained(this)));
|
| -}
|
| + : binding_(this), weak_factory_(this) {}
|
|
|
| ServiceRegistryImpl::~ServiceRegistryImpl() {
|
| while (!pending_connects_.empty()) {
|
| @@ -25,6 +21,8 @@ ServiceRegistryImpl::~ServiceRegistryImpl() {
|
| void ServiceRegistryImpl::Bind(
|
| mojo::InterfaceRequest<mojo::ServiceProvider> request) {
|
| binding_.Bind(request.Pass());
|
| + binding_.set_connection_error_handler(base::Bind(
|
| + &ServiceRegistryImpl::OnConnectionError, base::Unretained(this)));
|
| }
|
|
|
| void ServiceRegistryImpl::BindRemoteServiceProvider(
|
|
|