Commit 171f48f0 authored by Christopher Lam's avatar Christopher Lam Committed by Commit Bot

[Mojo WebUI] Stop logging unhandled interfaces.

Logs for unhandled interfaces are spammy and unnecessary. This CL
removes them.

Bug: None
Change-Id: I7135cee2db71edef5ca900395aab7536ff70fb77
Reviewed-on: https://chromium-review.googlesource.com/c/1301135Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603027}
parent 71f0c397
......@@ -24,11 +24,8 @@ void MojoWebUIController::OnInterfaceRequestFromFrame(
content::RenderFrameHost* render_frame_host,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle* interface_pipe) {
if (!registry_.CanBindInterface(interface_name)) {
LOG(WARNING) << "Cannot bind request to " << interface_name << "; ignoring "
<< "request.";
if (!registry_.CanBindInterface(interface_name))
return;
}
// Right now, this is expected to be called only for main frames.
if (render_frame_host->GetParent()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment