Index: extensions/common/extension_api.cc |
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc |
index 1fee5b3c8b272719f2db9108d0288ec63655c8fc..8430a2fb117dead341b92dc8d8790f75196aeffc 100644 |
--- a/extensions/common/extension_api.cc |
+++ b/extensions/common/extension_api.cc |
@@ -132,8 +132,8 @@ void PrefixRefsWithNamespace(const std::string& schema_namespace, |
base::ListValue* list = NULL; |
base::DictionaryValue* dict = NULL; |
if (value->GetAsList(&list)) { |
- for (base::ListValue::iterator i = list->begin(); i != list->end(); ++i) { |
- PrefixRefsWithNamespace(schema_namespace, *i); |
+ for (const auto& i : *list) { |
+ PrefixRefsWithNamespace(schema_namespace, i.get()); |
} |
} else if (value->GetAsDictionary(&dict)) { |
MaybePrefixFieldWithNamespace(schema_namespace, dict, "$ref"); |