| Index: chromeos/network/onc/onc_mapper.cc
|
| diff --git a/chromeos/network/onc/onc_mapper.cc b/chromeos/network/onc/onc_mapper.cc
|
| index d5df15ef23c4a9465fa590be0c77f4260e306d2e..b24fdd6173d9639cb8093754e5bd268cb9eb9173 100644
|
| --- a/chromeos/network/onc/onc_mapper.cc
|
| +++ b/chromeos/network/onc/onc_mapper.cc
|
| @@ -116,10 +116,7 @@ std::unique_ptr<base::ListValue> Mapper::MapArray(
|
|
|
| std::unique_ptr<base::ListValue> result_array(new base::ListValue);
|
| int original_index = 0;
|
| - for (base::ListValue::const_iterator it = onc_array.begin();
|
| - it != onc_array.end(); ++it, ++original_index) {
|
| - const base::Value* entry = *it;
|
| -
|
| + for (const auto& entry : onc_array) {
|
| std::unique_ptr<base::Value> result_entry;
|
| result_entry = MapEntry(original_index,
|
| *array_signature.onc_array_entry_signature,
|
| @@ -129,6 +126,7 @@ std::unique_ptr<base::ListValue> Mapper::MapArray(
|
| result_array->Append(result_entry.release());
|
| else
|
| DCHECK(*nested_error);
|
| + ++original_index;
|
| }
|
| return result_array;
|
| }
|
|
|