Update process message unit test expectations (see issue #3126)

See related comments in commit f3c513ba.
This commit is contained in:
Marshall Greenblatt
2021-05-20 14:54:07 -04:00
parent f3c513bafd
commit 21ac0be8d7
2 changed files with 21 additions and 5 deletions

View File

@@ -248,13 +248,16 @@ void CefFrameHostImpl::SendProcessMessage(
if (!message || !message->IsValid())
return;
// Invalidate the message object immediately by taking the argument list.
auto argument_list =
static_cast<CefProcessMessageImpl*>(message.get())->TakeArgumentList();
SendToRenderFrame(base::BindOnce(
[](CefRefPtr<CefProcessMessage> message,
[](const CefString& name, base::ListValue argument_list,
const RenderFrameType& render_frame) {
auto impl = static_cast<CefProcessMessageImpl*>(message.get());
render_frame->SendMessage(impl->GetName(), impl->TakeArgumentList());
render_frame->SendMessage(name, std::move(argument_list));
},
message));
message->GetName(), std::move(argument_list)));
}
void CefFrameHostImpl::SetFocused(bool focused) {