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

Unified Diff: components/arc/net/arc_net_host_impl.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: components/arc/net/arc_net_host_impl.cc
diff --git a/components/arc/net/arc_net_host_impl.cc b/components/arc/net/arc_net_host_impl.cc
index e2472b696af1075808bcf3e7a7372e7e09eeec9b..985ef6a8733d8dccd6d9b9072858448526a009f3 100644
--- a/components/arc/net/arc_net_host_impl.cc
+++ b/components/arc/net/arc_net_host_impl.cc
@@ -369,7 +369,7 @@ void ArcNetHostImpl::GetNetworks(mojom::GetNetworksRequestType type,
// property.
mojo::Array<mojom::WifiConfigurationPtr> networks =
mojo::Array<mojom::WifiConfigurationPtr>::New(0);
- for (base::Value* value : *network_properties_list) {
+ for (const auto& value : *network_properties_list) {
mojom::WifiConfigurationPtr wc = mojom::WifiConfiguration::New();
base::DictionaryValue* network_dict = nullptr;

Powered by Google App Engine
This is Rietveld 408576698