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

Unified Diff: extensions/browser/api/system_network/system_network_apitest.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/system_network/system_network_apitest.cc
diff --git a/extensions/browser/api/system_network/system_network_apitest.cc b/extensions/browser/api/system_network/system_network_apitest.cc
index 047857e2120fcdd4aa0a39ca8e53813e73b9a741..b49657552551c130e772ef824c45a9defa6bf0ac 100644
--- a/extensions/browser/api/system_network/system_network_apitest.cc
+++ b/extensions/browser/api/system_network/system_network_apitest.cc
@@ -43,10 +43,7 @@ IN_PROC_BROWSER_TEST_F(SystemNetworkApiTest, GetNetworkInterfaces) {
base::ListValue* value = static_cast<base::ListValue*>(result.get());
ASSERT_TRUE(value->GetSize() > 0);
- for (base::ListValue::const_iterator it = value->begin(); it != value->end();
- ++it) {
- base::Value* network_interface_value = *it;
-
+ for (const auto& network_interface_value : *value) {
NetworkInterface network_interface;
ASSERT_TRUE(NetworkInterface::Populate(*network_interface_value,
&network_interface));

Powered by Google App Engine
This is Rietveld 408576698