Index: chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc |
diff --git a/chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc b/chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc |
index 27440de5cd5c564dc78fdd499c67a5eda0d50de3..ed6616737ddee44c830dbad1bb18079b5cd661f6 100644 |
--- a/chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc |
+++ b/chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc |
@@ -8,6 +8,7 @@ |
#include <utility> |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/values.h" |
#include "components/url_formatter/url_fixer.h" |
@@ -172,7 +173,8 @@ void SupervisedUserBookmarksHandler::AddFoldersToTree() { |
std::unique_ptr<base::DictionaryValue> node(new base::DictionaryValue); |
node->SetIntegerWithoutPathExpansion(kId, folder.id); |
node->SetStringWithoutPathExpansion(kName, folder.name); |
- node->SetWithoutPathExpansion(kChildren, new base::ListValue); |
+ node->SetWithoutPathExpansion(kChildren, |
+ base::MakeUnique<base::ListValue>()); |
if (!AddNodeToTree(folder.parent_id, std::move(node))) |
folders_failed.push_back(folder); |
} |