| 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 {
|
|
|