Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: net/quic/chromium/quic_chromium_client_stream.cc

Issue 2588043002: Pass value and use std::move instead of const reference for ack listeners. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/chromium/quic_chromium_client_stream.cc
diff --git a/net/quic/chromium/quic_chromium_client_stream.cc b/net/quic/chromium/quic_chromium_client_stream.cc
index 9e24b2464feaff82f15b8adbd25ec0f875bae51f..2cff4b80774b9ffb42fd7de086ac24904361684c 100644
--- a/net/quic/chromium/quic_chromium_client_stream.cc
+++ b/net/quic/chromium/quic_chromium_client_stream.cc
@@ -123,7 +123,7 @@ void QuicChromiumClientStream::OnCanWrite() {
size_t QuicChromiumClientStream::WriteHeaders(
SpdyHeaderBlock header_block,
bool fin,
- const scoped_refptr<QuicAckListenerInterface>& ack_notifier_delegate) {
+ scoped_refptr<QuicAckListenerInterface> ack_notifier_delegate) {
if (!session()->IsCryptoHandshakeConfirmed()) {
auto entry = header_block.find(":method");
DCHECK(entry != header_block.end());
@@ -134,7 +134,7 @@ size_t QuicChromiumClientStream::WriteHeaders(
base::Bind(&QuicRequestNetLogCallback, id(), &header_block,
QuicSpdyStream::priority()));
return QuicSpdyStream::WriteHeaders(std::move(header_block), fin,
- ack_notifier_delegate);
+ std::move(ack_notifier_delegate));
}
SpdyPriority QuicChromiumClientStream::priority() const {
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream.h ('k') | net/quic/chromium/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698