Commit 0ac34911 authored by David Bokan's avatar David Bokan Committed by Chromium LUCI CQ

Convert Bind to BindRepeating in CastChannelAPI

https://crrev.com/ff530f772caac made explicit that this callback is a
RepeatedCallback. We forgot to change the associated Bind call.

Bug: 1152268
Change-Id: I1b9320ed117a2a2426e8a80ac02ea7ba41901fa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595592
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837740}
parent c0ca6c85
...@@ -185,9 +185,10 @@ void CastChannelAPI::OnListenerAdded(const EventListenerInfo& details) { ...@@ -185,9 +185,10 @@ void CastChannelAPI::OnListenerAdded(const EventListenerInfo& details) {
if (message_handler_) if (message_handler_)
return; return;
message_handler_.reset(new CastMessageHandler( message_handler_ = std::make_unique<CastMessageHandler>(
base::Bind(&CastChannelAPI::SendEvent, AsWeakPtr(), details.extension_id), base::BindRepeating(&CastChannelAPI::SendEvent, AsWeakPtr(),
cast_socket_service_)); details.extension_id),
cast_socket_service_);
cast_socket_service_->task_runner()->PostTask( cast_socket_service_->task_runner()->PostTask(
FROM_HERE, base::BindOnce(&CastMessageHandler::Init, FROM_HERE, base::BindOnce(&CastMessageHandler::Init,
base::Unretained(message_handler_.get()))); base::Unretained(message_handler_.get())));
......
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