Commit 599e84af authored by Seth Hampson's avatar Seth Hampson Committed by Commit Bot

QuicStreamHost copy updated to a move.

Fixing a small bug - the WriteData function should use a move instead of
a copy for the data.

Bug: 874296
Change-Id: I8b572a9d492d6fcea0e238b49bb72b0ed9273baf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573805Reviewed-by: default avatarSeth Hampson <shampson@chromium.org>
Reviewed-by: default avatarSteve Anton <steveanton@chromium.org>
Auto-Submit: Seth Hampson <shampson@chromium.org>
Commit-Queue: Seth Hampson <shampson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652210}
parent 77173954
......@@ -58,7 +58,7 @@ void QuicStreamHost::MarkReceivedDataConsumed(uint32_t amount) {
void QuicStreamHost::WriteData(Vector<uint8_t> data, bool fin) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
DCHECK(p2p_stream_);
p2p_stream_->WriteData(data, fin);
p2p_stream_->WriteData(std::move(data), fin);
if (fin) {
DCHECK(writable_);
writable_ = false;
......
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