| Index: components/syncable_prefs/pref_model_associator.cc
|
| diff --git a/components/syncable_prefs/pref_model_associator.cc b/components/syncable_prefs/pref_model_associator.cc
|
| index aae6ab77d63b0225c5e4c18912a7c4089e5d4a1a..c43679f3921b21729779aed0a94e9703223efd6c 100644
|
| --- a/components/syncable_prefs/pref_model_associator.cc
|
| +++ b/components/syncable_prefs/pref_model_associator.cc
|
| @@ -299,10 +299,8 @@ base::Value* PrefModelAssociator::MergeListValues(const base::Value& from_value,
|
| static_cast<const base::ListValue&>(to_value);
|
| base::ListValue* result = to_list_value.DeepCopy();
|
|
|
| - for (base::ListValue::const_iterator i = from_list_value.begin();
|
| - i != from_list_value.end(); ++i) {
|
| - base::Value* value = (*i)->DeepCopy();
|
| - result->AppendIfNotPresent(value);
|
| + for (const auto& value : from_list_value) {
|
| + result->AppendIfNotPresent(value->CreateDeepCopy());
|
| }
|
| return result;
|
| }
|
|
|