Index: components/error_page/common/localized_error.cc |
diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc |
index 5192a110541d9c3930529501b2365991e3e18c29..9047cdc515912f726837b7fa3cd2910550b39dc3 100644 |
--- a/components/error_page/common/localized_error.cc |
+++ b/components/error_page/common/localized_error.cc |
@@ -757,6 +757,9 @@ base::DictionaryValue* AddSuggestionDetailDictionaryToList( |
l10n_util::GetStringUTF16(body_message_id)); |
} |
list->Append(base::WrapUnique(suggestion_list_item)); |
+ // |suggestion_list_item| is invalidated at this point, so it needs to be |
+ // reset. |
+ list->GetDictionary(list->GetSize() - 1, &suggestion_list_item); |
return suggestion_list_item; |
} |