Index: net/websockets/websocket_test_util.cc |
diff --git a/net/websockets/websocket_test_util.cc b/net/websockets/websocket_test_util.cc |
index 3f963bf0e9437a4290333fe4e0bd440c47987c5e..00cf68e50e8b09f3429227bbd2efc8a0847bdcac 100644 |
--- a/net/websockets/websocket_test_util.cc |
+++ b/net/websockets/websocket_test_util.cc |
@@ -137,14 +137,14 @@ void WebSocketDeterministicMockClientSocketFactoryMaker::SetExpectations( |
void WebSocketDeterministicMockClientSocketFactoryMaker::AddRawExpectations( |
scoped_ptr<DeterministicSocketData> socket_data) { |
detail_->factory.AddSocketDataProvider(socket_data.get()); |
- detail_->socket_data_vector.push_back(socket_data.release()); |
+ detail_->socket_data_vector.push_back(socket_data.Pass()); |
} |
void |
WebSocketDeterministicMockClientSocketFactoryMaker::AddSSLSocketDataProvider( |
scoped_ptr<SSLSocketDataProvider> ssl_socket_data) { |
detail_->factory.AddSSLSocketDataProvider(ssl_socket_data.get()); |
- detail_->ssl_socket_data_vector.push_back(ssl_socket_data.release()); |
+ detail_->ssl_socket_data_vector.push_back(ssl_socket_data.Pass()); |
} |
WebSocketTestURLRequestContextHost::WebSocketTestURLRequestContextHost() |