+void ProfileInfoCache::SetIsOmittedProfileAtIndex(size_t index,
+ bool is_omitted) {
+ if (IsOmittedProfileAtIndex(index) == is_omitted)
+ return;
+ scoped_ptr<base::DictionaryValue> info(
+ GetInfoForProfileAtIndex(index)->DeepCopy());
+ info->SetBoolean(kIsOmittedFromProfileListKey, is_omitted);
+ // This takes ownership of |info|.
+ SetInfoForProfileAtIndex(index, info.release());
+}
+