| Index: components/omnibox/browser/titled_url_match_utils.cc
|
| diff --git a/components/omnibox/browser/titled_url_match_utils.cc b/components/omnibox/browser/titled_url_match_utils.cc
|
| index 8c6063065dccf592f2411d8fdc30965e51da1ae4..a1152514baf22c043eb7f8b660696317122180bd 100644
|
| --- a/components/omnibox/browser/titled_url_match_utils.cc
|
| +++ b/components/omnibox/browser/titled_url_match_utils.cc
|
| @@ -85,8 +85,12 @@ AutocompleteMatch TitledUrlMatchToAutocompleteMatch(
|
| // |offsets|, compute how everything is transformed, then remove it from the
|
| // end.
|
| offsets.push_back(inline_autocomplete_offset);
|
| - match.contents = AutocompleteMatch::FormatUrlForSuggestionDisplayWithOffsets(
|
| - url, trim_http, &offsets);
|
| + base::OffsetAdjuster::Adjustments adjustments;
|
| + match.contents =
|
| + AutocompleteMatch::FormatUrlForSuggestionDisplayWithAdjustments(
|
| + url, trim_http, &adjustments);
|
| + base::OffsetAdjuster::AdjustOffsets(adjustments, &offsets,
|
| + match.contents.length());
|
| inline_autocomplete_offset = offsets.back();
|
| offsets.pop_back();
|
| TitledUrlMatch::MatchPositions new_url_match_positions =
|
|
|