From b64c1b3dd24b7069e87290d363247c7e45c74688 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 29 Oct 2013 19:14:52 +0000 Subject: [PATCH] Use scoped_refptr<> instead of raw pointer git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1495 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/browser/browser_urlrequest_impl.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcef/browser/browser_urlrequest_impl.cc b/libcef/browser/browser_urlrequest_impl.cc index a2c75642e..d402efbd4 100644 --- a/libcef/browser/browser_urlrequest_impl.cc +++ b/libcef/browser/browser_urlrequest_impl.cc @@ -73,7 +73,8 @@ class NET_EXPORT CefURLFetcherResponseWriter : if (url_request_) { message_loop_proxy_->PostTask(FROM_HERE, base::Bind(&CefURLFetcherResponseWriter::WriteOnClientThread, - url_request_, buffer, num_bytes, callback, + url_request_, scoped_refptr(buffer), + num_bytes, callback, base::MessageLoop::current()->message_loop_proxy())); return net::ERR_IO_PENDING; } @@ -89,7 +90,7 @@ class NET_EXPORT CefURLFetcherResponseWriter : private: static void WriteOnClientThread( CefRefPtr url_request, - net::IOBuffer* buffer, + scoped_refptr buffer, int num_bytes, const net::CompletionCallback& callback, scoped_refptr source_message_loop_proxy) {