| Index: services/shell/public/cpp/lib/interface_registry.cc
|
| diff --git a/services/shell/public/cpp/lib/interface_registry.cc b/services/shell/public/cpp/lib/interface_registry.cc
|
| index 6ab2401147366bd732fcecc3f46d68a660b40c87..29645c9852137de742c3501740a975a8c8520ee8 100644
|
| --- a/services/shell/public/cpp/lib/interface_registry.cc
|
| +++ b/services/shell/public/cpp/lib/interface_registry.cc
|
| @@ -37,11 +37,11 @@ void InterfaceRegistry::GetInterface(const mojo::String& interface_name,
|
| default_binder_;
|
| if (binder) {
|
| binder->BindInterface(connection_, interface_name, std::move(handle));
|
| - } else {
|
| - LOG(WARNING) << "Connection CapabilityFilter prevented binding to "
|
| - << "interface: " << interface_name << " connection_name:"
|
| - << connection_->GetConnectionName() << " remote_name:"
|
| - << connection_->GetRemoteIdentity().name();
|
| + } else if (connection_ && !connection_->AllowsInterface(interface_name)) {
|
| + LOG(ERROR) << "CapabilitySpec of: "
|
| + << connection_->GetRemoteIdentity().name()
|
| + << " prevented binding interface: " << interface_name
|
| + << " provided by: " << connection_->GetConnectionName();
|
| }
|
| }
|
|
|
|
|