| Index: chrome/browser/extensions/api/content_settings/content_settings_api.cc
|
| diff --git a/chrome/browser/extensions/api/content_settings/content_settings_api.cc b/chrome/browser/extensions/api/content_settings/content_settings_api.cc
|
| index a7c2a8443b865123f43464e6f89d801d156ed670..75351e807674364c4f3dffc7689d539c8e37bdb9 100644
|
| --- a/chrome/browser/extensions/api/content_settings/content_settings_api.cc
|
| +++ b/chrome/browser/extensions/api/content_settings/content_settings_api.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <memory>
|
| #include <set>
|
| +#include <utility>
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| @@ -316,10 +317,10 @@ void ContentSettingsContentSettingGetResourceIdentifiersFunction::OnGotPlugins(
|
| continue;
|
|
|
| group_identifiers.insert(group_identifier);
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| + std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
|
| dict->SetString(keys::kIdKey, group_identifier);
|
| dict->SetString(keys::kDescriptionKey, plugin_metadata->name());
|
| - list->Append(dict);
|
| + list->Append(std::move(dict));
|
| }
|
| SetResult(std::move(list));
|
| BrowserThread::PostTask(
|
|
|