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

Unified Diff: extensions/browser/api/networking_private/networking_private_chromeos.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: extensions/browser/api/networking_private/networking_private_chromeos.cc
diff --git a/extensions/browser/api/networking_private/networking_private_chromeos.cc b/extensions/browser/api/networking_private/networking_private_chromeos.cc
index 2a072744b30e193b903f8b6f69774f61220bd159..65309acdf8d5b5ea773f0b3c9066c34132d35b78 100644
--- a/extensions/browser/api/networking_private/networking_private_chromeos.cc
+++ b/extensions/browser/api/networking_private/networking_private_chromeos.cc
@@ -356,7 +356,7 @@ void NetworkingPrivateChromeOS::GetNetworks(
chromeos::network_util::TranslateNetworkListToONC(
pattern, configured_only, visible_only, limit);
- for (base::Value* value : *network_properties_list) {
+ for (const auto& value : *network_properties_list) {
base::DictionaryValue* network_dict = nullptr;
value->GetAsDictionary(&network_dict);
DCHECK(network_dict);

Powered by Google App Engine
This is Rietveld 408576698