| Index: net/http/http_proxy_client_socket_pool.cc
|
| diff --git a/net/http/http_proxy_client_socket_pool.cc b/net/http/http_proxy_client_socket_pool.cc
|
| index 7375920d8a2daa0b4e83ed0a2447d5243913c7a5..b26730275218060de7e2133b8dfad920c59f5314 100644
|
| --- a/net/http/http_proxy_client_socket_pool.cc
|
| +++ b/net/http/http_proxy_client_socket_pool.cc
|
| @@ -8,6 +8,7 @@
|
| #include <utility>
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/time/time.h"
|
| #include "base/values.h"
|
| #include "net/base/load_flags.h"
|
| @@ -291,7 +292,7 @@ HttpProxyClientSocketPool::GetInfoAsValue(const std::string& name,
|
| bool include_nested_pools) const {
|
| std::unique_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type));
|
| if (include_nested_pools) {
|
| - base::ListValue* list = new base::ListValue();
|
| + auto list = base::MakeUnique<base::ListValue>();
|
| if (transport_pool_) {
|
| list->Append(transport_pool_->GetInfoAsValue("transport_socket_pool",
|
| "transport_socket_pool",
|
| @@ -302,7 +303,7 @@ HttpProxyClientSocketPool::GetInfoAsValue(const std::string& name,
|
| "ssl_socket_pool",
|
| true));
|
| }
|
| - dict->Set("nested_pools", list);
|
| + dict->Set("nested_pools", std::move(list));
|
| }
|
| return dict;
|
| }
|
|
|