We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f0c62 commit 4d24499Copy full SHA for 4d24499
components/omnibox/browser/search_suggestion_parser.cc
@@ -618,8 +618,12 @@ bool SearchSuggestionParser::ParseSuggestResults(
618
}
619
620
621
- if (types && types->GetString(index, &type))
622
- match_type = GetAutocompleteMatchType(type);
+ if (types && index < types->GetList().size() &&
+ types->GetList()[index].is_string()) {
623
+ match_type =
624
+ GetAutocompleteMatchType(types->GetList()[index].GetString());
625
+ }
626
+
627
std::string deletion_url;
628
if (suggestion_details) {
629
const base::Value& suggestion_detail =
0 commit comments