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

Unified Diff: chrome/browser/policy/managed_bookmarks_policy_handler.cc

Issue 2000803003: Use std::unique_ptr for base::DictionaryValue and base::ListValue's internal store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix various builds. Created 4 years, 7 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/policy/managed_bookmarks_policy_handler.cc
diff --git a/chrome/browser/policy/managed_bookmarks_policy_handler.cc b/chrome/browser/policy/managed_bookmarks_policy_handler.cc
index 3c144247ef721194e33d176c92b8386c472fac6c..58bb19843be8fe748cea5f74cbae60cc3d5ac606 100644
--- a/chrome/browser/policy/managed_bookmarks_policy_handler.cc
+++ b/chrome/browser/policy/managed_bookmarks_policy_handler.cc
@@ -49,7 +49,7 @@ void ManagedBookmarksPolicyHandler::ApplyPolicySettings(
std::string
ManagedBookmarksPolicyHandler::GetFolderName(const base::ListValue& list) {
// Iterate over the list, and try to find the FolderName.
- for (auto el : list) {
+ for (const auto& el : list) {
const base::DictionaryValue* dict = NULL;
if (!el || !el->GetAsDictionary(&dict)) continue;

Powered by Google App Engine
This is Rietveld 408576698