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

Unified Diff: net/websockets/websocket_stream.cc

Issue 657013003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/websockets/websocket_channel_test.cc ('k') | net/websockets/websocket_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_stream.cc
diff --git a/net/websockets/websocket_stream.cc b/net/websockets/websocket_stream.cc
index 90cb7ca4e8dfdfb8265f49d8a6a5694384b682b2..04beb26e9dc3ec77faab7d9bb307bcf7e5038e73 100644
--- a/net/websockets/websocket_stream.cc
+++ b/net/websockets/websocket_stream.cc
@@ -316,7 +316,7 @@ scoped_ptr<WebSocketStreamRequest> WebSocketStream::CreateAndConnectStream(
connect_delegate.Pass(),
create_helper.Pass()));
request->Start(scoped_ptr<base::Timer>(new base::Timer(false, false)));
- return request.PassAs<WebSocketStreamRequest>();
+ return request.Pass();
}
// This is declared in websocket_test_util.h.
@@ -335,7 +335,7 @@ scoped_ptr<WebSocketStreamRequest> CreateAndConnectStreamForTesting(
connect_delegate.Pass(),
create_helper.Pass()));
request->Start(timer.Pass());
- return request.PassAs<WebSocketStreamRequest>();
+ return request.Pass();
}
void WebSocketDispatchOnFinishOpeningHandshake(
« no previous file with comments | « net/websockets/websocket_channel_test.cc ('k') | net/websockets/websocket_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698