make_scoped_refptr --> WrapRefCounted
This commit is contained in:
parent
4666879f94
commit
12066a60f3
11 changed files with 26 additions and 26 deletions
|
@ -444,7 +444,7 @@ bool AtomURLRequest::CopyAndPostBuffer(int bytes_read) {
|
|||
|
||||
// data is only a wrapper for the asynchronous response_read_buffer_.
|
||||
// Make a deep copy of payload and transfer ownership to the UI thread.
|
||||
auto buffer_copy = make_scoped_refptr(new net::IOBufferWithSize(bytes_read));
|
||||
auto buffer_copy = WrapRefCounted(new net::IOBufferWithSize(bytes_read));
|
||||
memcpy(buffer_copy->data(), response_read_buffer_->data(), bytes_read);
|
||||
|
||||
return content::BrowserThread::PostTask(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue