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

Unified Diff: chrome/browser/supervised_user/supervised_user_site_list.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: More fixes 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/supervised_user/supervised_user_site_list.cc
diff --git a/chrome/browser/supervised_user/supervised_user_site_list.cc b/chrome/browser/supervised_user/supervised_user_site_list.cc
index 2fc9400f571df979da8f9716e0a31d0f387ae2db..d1ff03b230a7a0249a26d32037a48d6d416acf77 100644
--- a/chrome/browser/supervised_user/supervised_user_site_list.cc
+++ b/chrome/browser/supervised_user/supervised_user_site_list.cc
@@ -45,7 +45,7 @@ std::unique_ptr<base::Value> ReadFileOnBlockingThread(
std::vector<std::string> ConvertListValues(const base::ListValue* list_values) {
std::vector<std::string> converted;
if (list_values) {
- for (const base::Value* entry : *list_values) {
+ for (const auto& entry : *list_values) {
std::string entry_string;
if (!entry->GetAsString(&entry_string)) {
LOG(ERROR) << "Invalid whitelist entry";

Powered by Google App Engine
This is Rietveld 408576698