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

Unified Diff: remoting/jingle_glue/chromium_socket_factory.cc

Issue 15782010: Update remoting/ and jingle/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
« no previous file with comments | « remoting/host/url_request_context.cc ('k') | remoting/jingle_glue/javascript_signal_strategy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/chromium_socket_factory.cc
diff --git a/remoting/jingle_glue/chromium_socket_factory.cc b/remoting/jingle_glue/chromium_socket_factory.cc
index 2798391e2c1f7d503fadbdc4fa360c97aa026519..d8940875feb74083bfeb3b899178652f70e605a4 100644
--- a/remoting/jingle_glue/chromium_socket_factory.cc
+++ b/remoting/jingle_glue/chromium_socket_factory.cc
@@ -257,9 +257,10 @@ void UdpPacketSocket::DoSend() {
PendingPacket& packet = send_queue_.front();
int result = socket_->SendTo(
- packet.data, packet.data->size(), packet.address,
- base::Bind(&UdpPacketSocket::OnSendCompleted,
- base::Unretained(this)));
+ packet.data.get(),
+ packet.data->size(),
+ packet.address,
+ base::Bind(&UdpPacketSocket::OnSendCompleted, base::Unretained(this)));
if (result == net::ERR_IO_PENDING) {
send_pending_ = true;
} else {
@@ -290,7 +291,9 @@ void UdpPacketSocket::DoRead() {
while (result >= 0) {
receive_buffer_ = new net::IOBuffer(kReceiveBufferSize);
result = socket_->RecvFrom(
- receive_buffer_, kReceiveBufferSize, &receive_address_,
+ receive_buffer_.get(),
+ kReceiveBufferSize,
+ &receive_address_,
base::Bind(&UdpPacketSocket::OnReadCompleted, base::Unretained(this)));
HandleReadResult(result);
}
« no previous file with comments | « remoting/host/url_request_context.cc ('k') | remoting/jingle_glue/javascript_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698