| 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 6f79a510b3f72905d9f6a9ee430f5de7ad66c5e7..f992e7da60f0d412438ab19bd2cdad457909add1 100644
|
| --- a/services/shell/public/cpp/lib/interface_registry.cc
|
| +++ b/services/shell/public/cpp/lib/interface_registry.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "services/shell/public/cpp/interface_registry.h"
|
|
|
| +#include <sstream>
|
| +
|
| +#include "mojo/public/cpp/bindings/message.h"
|
| #include "services/shell/public/cpp/connection.h"
|
|
|
| namespace shell {
|
| @@ -90,9 +93,11 @@ void InterfaceRegistry::GetInterface(const std::string& interface_name,
|
| interface_name,
|
| std::move(handle));
|
| } else if (!CanBindRequestForInterface(interface_name)) {
|
| - LOG(ERROR) << "Capability spec prevented service: "
|
| - << remote_identity_.name()
|
| - << " from binding interface: " << interface_name;
|
| + std::stringstream ss;
|
| + ss << "Capability spec prevented service " << remote_identity_.name()
|
| + << " from binding interface: " << interface_name;
|
| + LOG(ERROR) << ss.str();
|
| + mojo::ReportBadMessage(ss.str());
|
| } else if (!default_binder_.is_null()) {
|
| default_binder_.Run(interface_name, std::move(handle));
|
| } else {
|
|
|