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

Unified Diff: net/server/http_connection.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk 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 | « net/quic/quic_network_transaction_unittest.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_connection.cc
diff --git a/net/server/http_connection.cc b/net/server/http_connection.cc
index 2bc9d4d0e54ff7a1bb618425d0ac9d5a8909760d..9bce6f8fa94d53c38468a9ba1d47eb9dc50e967b 100644
--- a/net/server/http_connection.cc
+++ b/net/server/http_connection.cc
@@ -15,13 +15,13 @@ namespace net {
int HttpConnection::last_id_ = 0;
void HttpConnection::Send(const std::string& data) {
- if (!socket_)
+ if (!socket_.get())
return;
socket_->Send(data);
}
void HttpConnection::Send(const char* bytes, int len) {
- if (!socket_)
+ if (!socket_.get())
return;
socket_->Send(bytes, len);
}
@@ -29,7 +29,7 @@ void HttpConnection::Send(const char* bytes, int len) {
void HttpConnection::Send(HttpStatusCode status_code,
const std::string& data,
const std::string& content_type) {
- if (!socket_)
+ if (!socket_.get())
return;
std::string status_message;
« no previous file with comments | « net/quic/quic_network_transaction_unittest.cc ('k') | net/server/http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698