Commit 27d739cb authored by reillyg's avatar reillyg Committed by Commit bot

Remove unnecessary posted task in cast_transport.cc.

The original author can't remember why this post was necessary. Since
the actual result callback is posted immediately afterwards any
side-effects (such as synchronizing with another message loop) should
already be achieved.

Review-Url: https://codereview.chromium.org/2044603002
Cr-Commit-Position: refs/heads/master@{#398124}
parent d9fcb787
...@@ -327,8 +327,6 @@ int CastTransportImpl::DoWriteCallback() { ...@@ -327,8 +327,6 @@ int CastTransportImpl::DoWriteCallback() {
logger_->LogSocketEventForMessage( logger_->LogSocketEventForMessage(
channel_id_, proto::MESSAGE_WRITTEN, request.message_namespace, channel_id_, proto::MESSAGE_WRITTEN, request.message_namespace,
base::StringPrintf("Bytes: %d", bytes_consumed)); base::StringPrintf("Bytes: %d", bytes_consumed));
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
base::Bind(&base::DoNothing));
base::ThreadTaskRunnerHandle::Get()->PostTask( base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(request.callback, net::OK)); FROM_HERE, base::Bind(request.callback, net::OK));
......
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