| Index: chrome/browser/ui/webui/cookies_tree_model_util.cc
|
| diff --git a/chrome/browser/ui/webui/cookies_tree_model_util.cc b/chrome/browser/ui/webui/cookies_tree_model_util.cc
|
| index d5311963735db722aaf403ba706f2a002def79fa..a1cef917ef870316d7414cfebe3c3f343cf7d843 100644
|
| --- a/chrome/browser/ui/webui/cookies_tree_model_util.cc
|
| +++ b/chrome/browser/ui/webui/cookies_tree_model_util.cc
|
| @@ -309,10 +309,11 @@ bool CookiesTreeModelUtil::GetCookieTreeNodeDictionary(
|
| base::ListValue* app_infos = new base::ListValue;
|
| for (extensions::ExtensionSet::const_iterator it = protecting_apps->begin();
|
| it != protecting_apps->end(); ++it) {
|
| - base::DictionaryValue* app_info = new base::DictionaryValue();
|
| + std::unique_ptr<base::DictionaryValue> app_info(
|
| + new base::DictionaryValue());
|
| app_info->SetString(kKeyId, (*it)->id());
|
| app_info->SetString(kKeyName, (*it)->name());
|
| - app_infos->Append(app_info);
|
| + app_infos->Append(std::move(app_info));
|
| }
|
| dict->Set(kKeyAppsProtectingThis, app_infos);
|
| }
|
|
|