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

Unified Diff: content/browser/renderer_host/socket_stream_host.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
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();
}
« no previous file with comments | « content/browser/renderer_host/smooth_scroll_gesture_controller.cc ('k') | content/browser/resolve_proxy_msg_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698