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

Unified Diff: remoting/protocol/fake_authenticator.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/protocol/connection_tester.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_authenticator.cc
diff --git a/remoting/protocol/fake_authenticator.cc b/remoting/protocol/fake_authenticator.cc
index 0107654d7567ea0e787fcdfbf8e0c15bec30b681..0b7c3232c83f2887dd2283da7a94155f58cd4768 100644
--- a/remoting/protocol/fake_authenticator.cc
+++ b/remoting/protocol/fake_authenticator.cc
@@ -36,9 +36,11 @@ void FakeChannelAuthenticator::SecureAndAuthenticate(
scoped_refptr<net::IOBuffer> write_buf = new net::IOBuffer(1);
write_buf->data()[0] = 0;
- int result = socket_->Write(
- write_buf, 1, base::Bind(&FakeChannelAuthenticator::OnAuthBytesWritten,
- weak_factory_.GetWeakPtr()));
+ int result =
+ socket_->Write(write_buf.get(),
+ 1,
+ base::Bind(&FakeChannelAuthenticator::OnAuthBytesWritten,
+ weak_factory_.GetWeakPtr()));
if (result != net::ERR_IO_PENDING) {
// This will not call the callback because |did_read_bytes_| is
// still set to false.
@@ -46,9 +48,11 @@ void FakeChannelAuthenticator::SecureAndAuthenticate(
}
scoped_refptr<net::IOBuffer> read_buf = new net::IOBuffer(1);
- result = socket_->Read(
- read_buf, 1, base::Bind(&FakeChannelAuthenticator::OnAuthBytesRead,
- weak_factory_.GetWeakPtr()));
+ result =
+ socket_->Read(read_buf.get(),
+ 1,
+ base::Bind(&FakeChannelAuthenticator::OnAuthBytesRead,
+ weak_factory_.GetWeakPtr()));
if (result != net::ERR_IO_PENDING)
OnAuthBytesRead(result);
} else {
« no previous file with comments | « remoting/protocol/connection_tester.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698