| Index: content/browser/renderer_host/socket_stream_host.cc
|
| diff --git a/content/browser/renderer_host/socket_stream_host.cc b/content/browser/renderer_host/socket_stream_host.cc
|
| index 405a2b71e9914c16279e87f86a149d2a1e036bcf..2d42089b4335fc30e67bb19c6bddb5b6130c76b8 100644
|
| --- a/content/browser/renderer_host/socket_stream_host.cc
|
| +++ b/content/browser/renderer_host/socket_stream_host.cc
|
| @@ -67,33 +67,33 @@ void SocketStreamHost::Connect(const GURL& url,
|
|
|
| bool SocketStreamHost::SendData(const std::vector<char>& data) {
|
| VLOG(1) << "SocketStreamHost::SendData";
|
| - return socket_ && socket_->SendData(&data[0], data.size());
|
| + return socket_.get() && socket_->SendData(&data[0], data.size());
|
| }
|
|
|
| void SocketStreamHost::Close() {
|
| VLOG(1) << "SocketStreamHost::Close";
|
| - if (!socket_)
|
| + if (!socket_.get())
|
| return;
|
| socket_->Close();
|
| }
|
|
|
| void SocketStreamHost::CancelWithError(int error) {
|
| VLOG(1) << "SocketStreamHost::CancelWithError: error=" << error;
|
| - if (!socket_)
|
| + if (!socket_.get())
|
| return;
|
| socket_->CancelWithError(error);
|
| }
|
|
|
| void SocketStreamHost::CancelWithSSLError(const net::SSLInfo& ssl_info) {
|
| VLOG(1) << "SocketStreamHost::CancelWithSSLError";
|
| - if (!socket_)
|
| + if (!socket_.get())
|
| return;
|
| socket_->CancelWithSSLError(ssl_info);
|
| }
|
|
|
| void SocketStreamHost::ContinueDespiteError() {
|
| VLOG(1) << "SocketStreamHost::ContinueDespiteError";
|
| - if (!socket_)
|
| + if (!socket_.get())
|
| return;
|
| socket_->ContinueDespiteError();
|
| }
|
|
|