Commit 2dff98d7 authored by hari.singh1's avatar hari.singh1 Committed by Commit bot

Subsituting pattern ScopedVector push_back.(ptr.release()) with push_back(ptr.Pass()) in net/spdy

BUG=457697

Review URL: https://codereview.chromium.org/1156393003

Cr-Commit-Position: refs/heads/master@{#333060}
parent 2720fcd5
...@@ -474,7 +474,7 @@ void SpdyStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) { ...@@ -474,7 +474,7 @@ void SpdyStream::OnDataReceived(scoped_ptr<SpdyBuffer> buffer) {
// It should be valid for this to happen in the server push case. // It should be valid for this to happen in the server push case.
// We'll return received data when delegate gets attached to the stream. // We'll return received data when delegate gets attached to the stream.
if (buffer) { if (buffer) {
pending_recv_data_.push_back(buffer.release()); pending_recv_data_.push_back(buffer.Pass());
} else { } else {
pending_recv_data_.push_back(NULL); pending_recv_data_.push_back(NULL);
// Note: we leave the stream open in the session until the stream // Note: we leave the stream open in the session until the stream
......
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