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

Unified Diff: net/server/http_server.cc

Issue 1357693003: Returning scoped_ptr<> instead of raw pointer in WebSocket::CreateWebSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | net/server/web_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.cc
diff --git a/net/server/http_server.cc b/net/server/http_server.cc
index 23528ccaac79463a64e151436bdd76899f38d106..3abd44df9d691aede81ecdd2a46f346053f9c6c1 100644
--- a/net/server/http_server.cc
+++ b/net/server/http_server.cc
@@ -236,8 +236,8 @@ int HttpServer::HandleReadResult(HttpConnection* connection, int rv) {
connection->socket()->GetPeerAddress(&request.peer);
if (request.HasHeaderValue("connection", "upgrade")) {
- scoped_ptr<WebSocket> websocket(
- WebSocket::CreateWebSocket(this, connection, request));
+ scoped_ptr<WebSocket> websocket =
+ WebSocket::CreateWebSocket(this, connection, request);
if (!websocket) // Not enough data was received.
break;
connection->SetWebSocket(websocket.Pass());
« no previous file with comments | « no previous file | net/server/web_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698