Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: chrome/browser/supervised_user/supervised_user_bookmarks_handler.cc

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698