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

Unified Diff: net/http/http_server_properties_manager.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: net/http/http_server_properties_manager.cc
diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
index 67dd80e8c6c74c3a2386a7d10adae734fcdd227e..35fcea868776e453106e4ec7c5ae0eb37665a6fe 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -716,8 +716,7 @@ bool HttpServerPropertiesManager::AddToAlternativeServiceMap(
}
AlternativeServiceInfoVector alternative_service_info_vector;
- for (const base::Value* alternative_service_list_item :
- *alternative_service_list) {
+ for (const auto& alternative_service_list_item : *alternative_service_list) {
const base::DictionaryValue* alternative_service_dict;
if (!alternative_service_list_item->GetAsDictionary(
&alternative_service_dict))

Powered by Google App Engine
This is Rietveld 408576698