Index: net/socket/ssl_client_socket_pool.cc |
diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc |
index f8db1d0504136d3f25863816e834ccc01bdd81f8..a2a2a2a5b035e0f0fa301bd1658139b3587f3540 100644 |
--- a/net/socket/ssl_client_socket_pool.cc |
+++ b/net/socket/ssl_client_socket_pool.cc |
@@ -617,11 +617,11 @@ LoadState SSLClientSocketPool::GetLoadState( |
return base_.GetLoadState(group_name, handle); |
} |
-base::DictionaryValue* SSLClientSocketPool::GetInfoAsValue( |
+scoped_ptr<base::DictionaryValue> SSLClientSocketPool::GetInfoAsValue( |
const std::string& name, |
const std::string& type, |
bool include_nested_pools) const { |
- base::DictionaryValue* dict = base_.GetInfoAsValue(name, type); |
+ scoped_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type)); |
if (include_nested_pools) { |
base::ListValue* list = new base::ListValue(); |
if (transport_pool_) { |
@@ -641,7 +641,7 @@ base::DictionaryValue* SSLClientSocketPool::GetInfoAsValue( |
} |
dict->Set("nested_pools", list); |
} |
- return dict; |
+ return dict.Pass(); |
} |
base::TimeDelta SSLClientSocketPool::ConnectionTimeout() const { |