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

Unified Diff: jingle/glue/pseudotcp_adapter.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « jingle/glue/channel_socket_adapter_unittest.cc ('k') | jingle/glue/pseudotcp_adapter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/pseudotcp_adapter.cc
diff --git a/jingle/glue/pseudotcp_adapter.cc b/jingle/glue/pseudotcp_adapter.cc
index 34b697e13ca134d7181a939dc168f056ca8f14f6..d6c669bca142b2a93214510e8cae98e2602f1013 100644
--- a/jingle/glue/pseudotcp_adapter.cc
+++ b/jingle/glue/pseudotcp_adapter.cc
@@ -360,7 +360,7 @@ cricket::IPseudoTcpNotify::WriteResult PseudoTcpAdapter::Core::TcpWritePacket(
// send exactly as many bytes as we requested, or fail.
int result;
if (socket_.get()) {
- result = socket_->Write(write_buffer, len,
+ result = socket_->Write(write_buffer.get(), len,
base::Bind(&PseudoTcpAdapter::Core::OnWritten,
base::Unretained(this)));
} else {
@@ -379,12 +379,12 @@ cricket::IPseudoTcpNotify::WriteResult PseudoTcpAdapter::Core::TcpWritePacket(
}
void PseudoTcpAdapter::Core::DoReadFromSocket() {
- if (!socket_read_buffer_)
+ if (!socket_read_buffer_.get())
socket_read_buffer_ = new net::IOBuffer(kReadBufferSize);
int result = 1;
while (socket_.get() && result > 0) {
- result = socket_->Read(socket_read_buffer_, kReadBufferSize,
+ result = socket_->Read(socket_read_buffer_.get(), kReadBufferSize,
base::Bind(&PseudoTcpAdapter::Core::OnRead,
base::Unretained(this)));
if (result != net::ERR_IO_PENDING)
« no previous file with comments | « jingle/glue/channel_socket_adapter_unittest.cc ('k') | jingle/glue/pseudotcp_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698