| Index: chrome/browser/autocomplete/bookmark_provider.cc
|
| diff --git a/chrome/browser/autocomplete/bookmark_provider.cc b/chrome/browser/autocomplete/bookmark_provider.cc
|
| index 3437562b537e07268643cae03dd955fbb6b8ec34..268cc1cbe89931422682c6c4bf310ceff1d1fb50 100644
|
| --- a/chrome/browser/autocomplete/bookmark_provider.cc
|
| +++ b/chrome/browser/autocomplete/bookmark_provider.cc
|
| @@ -86,8 +86,7 @@ void BookmarkProvider::DoAutocomplete(const AutocompleteInput& input) {
|
| &matches);
|
| if (matches.empty())
|
| return; // There were no matches.
|
| - AutocompleteInput fixed_up_input(input);
|
| - FixupUserInput(&fixed_up_input);
|
| + base::string16 fixed_up_input(FixupUserInput(input, true));
|
| for (BookmarkMatches::const_iterator i = matches.begin(); i != matches.end();
|
| ++i) {
|
| // Create and score the AutocompleteMatch. If its score is 0 then the
|
| @@ -138,7 +137,7 @@ class ScoringFunctor {
|
|
|
| AutocompleteMatch BookmarkProvider::BookmarkMatchToACMatch(
|
| const AutocompleteInput& input,
|
| - const AutocompleteInput& fixed_up_input,
|
| + const base::string16& fixed_up_input_text,
|
| const BookmarkMatch& bookmark_match) {
|
| // The AutocompleteMatch we construct is non-deletable because the only
|
| // way to support this would be to delete the underlying bookmark, which is
|
| @@ -149,7 +148,7 @@ AutocompleteMatch BookmarkProvider::BookmarkMatchToACMatch(
|
| const GURL& url(bookmark_match.node->url());
|
| const base::string16& url_utf16 = base::UTF8ToUTF16(url.spec());
|
| size_t inline_autocomplete_offset = URLPrefix::GetInlineAutocompleteOffset(
|
| - input, fixed_up_input, false, url_utf16);
|
| + input.text(), fixed_up_input_text, false, url_utf16);
|
| match.destination_url = url;
|
| const size_t match_start = bookmark_match.url_match_positions.empty() ?
|
| 0 : bookmark_match.url_match_positions[0].first;
|
|
|