Index: net/socket/websocket_transport_client_socket_pool.cc |
diff --git a/net/socket/websocket_transport_client_socket_pool.cc b/net/socket/websocket_transport_client_socket_pool.cc |
index 224d010ef43eba3b9950081e3c57c20b9d933c65..1991194a6b87c8189e387ab0f40bc4eb982d6731 100644 |
--- a/net/socket/websocket_transport_client_socket_pool.cc |
+++ b/net/socket/websocket_transport_client_socket_pool.cc |
@@ -432,10 +432,11 @@ LoadState WebSocketTransportClientSocketPool::GetLoadState( |
return LookupConnectJob(handle)->GetLoadState(); |
} |
-base::DictionaryValue* WebSocketTransportClientSocketPool::GetInfoAsValue( |
- const std::string& name, |
- const std::string& type, |
- bool include_nested_pools) const { |
+scoped_ptr<base::DictionaryValue> |
+ WebSocketTransportClientSocketPool::GetInfoAsValue( |
+ const std::string& name, |
+ const std::string& type, |
+ bool include_nested_pools) const { |
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetString("name", name); |
dict->SetString("type", type); |
@@ -445,7 +446,7 @@ base::DictionaryValue* WebSocketTransportClientSocketPool::GetInfoAsValue( |
dict->SetInteger("max_socket_count", max_sockets_); |
dict->SetInteger("max_sockets_per_group", max_sockets_); |
dict->SetInteger("pool_generation_number", 0); |
- return dict.release(); |
+ return dict.Pass(); |
} |
TimeDelta WebSocketTransportClientSocketPool::ConnectionTimeout() const { |