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

Unified Diff: components/bookmarks/browser/bookmark_utils.cc

Issue 2784513002: Move PrefRegistrySimple to use unique_ptr<Value> (Closed)
Patch Set: Android Created 3 years, 9 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: components/bookmarks/browser/bookmark_utils.cc
diff --git a/components/bookmarks/browser/bookmark_utils.cc b/components/bookmarks/browser/bookmark_utils.cc
index a2e114a561fd9d8d04f4c6df96af173d0f72240d..2f1bd29a657a4d8f2cdc47b8a88edf8caa73bcb1 100644
--- a/components/bookmarks/browser/bookmark_utils.cc
+++ b/components/bookmarks/browser/bookmark_utils.cc
@@ -13,6 +13,7 @@
#include "base/i18n/case_conversion.h"
#include "base/i18n/string_search.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -461,7 +462,7 @@ void RegisterManagedBookmarksPrefs(PrefRegistrySimple* registry) {
// want to sync the expanded state of folders, it should be part of
// bookmark sync itself (i.e., a property of the sync folder nodes).
registry->RegisterListPref(prefs::kBookmarkEditorExpandedNodes,
- new base::ListValue);
+ base::MakeUnique<base::ListValue>());
registry->RegisterListPref(prefs::kManagedBookmarks);
registry->RegisterStringPref(
prefs::kManagedBookmarksFolderName, std::string());

Powered by Google App Engine
This is Rietveld 408576698