| Index: net/proxy/proxy_config.cc
|
| diff --git a/net/proxy/proxy_config.cc b/net/proxy/proxy_config.cc
|
| index b2d34cab2bcc632d155b43073094202028383b66..48b7ec71e10287c7ae68a0f9acfd899f499bdc65 100644
|
| --- a/net/proxy/proxy_config.cc
|
| +++ b/net/proxy/proxy_config.cc
|
| @@ -7,6 +7,7 @@
|
| #include <utility>
|
|
|
| #include "base/logging.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/strings/string_tokenizer.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/values.h"
|
| @@ -261,7 +262,7 @@ std::unique_ptr<base::DictionaryValue> ProxyConfig::ToValue() const {
|
| if (proxy_rules_.reverse_bypass)
|
| dict->SetBoolean("reverse_bypass", true);
|
|
|
| - base::ListValue* list = new base::ListValue();
|
| + auto list = base::MakeUnique<base::ListValue>();
|
|
|
| for (ProxyBypassRules::RuleList::const_iterator it =
|
| bypass.rules().begin();
|
| @@ -269,7 +270,7 @@ std::unique_ptr<base::DictionaryValue> ProxyConfig::ToValue() const {
|
| list->AppendString((*it)->ToString());
|
| }
|
|
|
| - dict->Set("bypass_list", list);
|
| + dict->Set("bypass_list", std::move(list));
|
| }
|
| }
|
|
|
|
|