Index: net/spdy/spdy_http_stream.cc |
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc |
index 45fe8320d6fa6cf65f1fe69ff822a2cfefb88a62..16e19b209ab76799d5ddd9f58f74905d3c54fbd2 100644 |
--- a/net/spdy/spdy_http_stream.cc |
+++ b/net/spdy/spdy_http_stream.cc |
@@ -6,6 +6,7 @@ |
#include <algorithm> |
#include <list> |
+#include <utility> |
#include "base/bind.h" |
#include "base/callback_helpers.h" |
@@ -282,7 +283,7 @@ int SpdyHttpStream::SendRequest(const HttpRequestHeaders& request_headers, |
NetLog::TYPE_HTTP_TRANSACTION_HTTP2_SEND_REQUEST_HEADERS, |
base::Bind(&SpdyHeaderBlockNetLogCallback, headers.get())); |
result = stream_->SendRequestHeaders( |
- headers.Pass(), |
+ std::move(headers), |
HasUploadData() ? MORE_DATA_TO_SEND : NO_MORE_DATA_TO_SEND); |
if (result == ERR_IO_PENDING) { |
@@ -360,7 +361,7 @@ void SpdyHttpStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { |
DCHECK(stream_.get()); |
DCHECK(!stream_->IsClosed() || stream_->type() == SPDY_PUSH_STREAM); |
if (buffer) { |
- response_body_queue_.Enqueue(buffer.Pass()); |
+ response_body_queue_.Enqueue(std::move(buffer)); |
if (user_buffer_.get()) { |
// Handing small chunks of data to the caller creates measurable overhead. |