Chromium Code Reviews| Index: chrome/browser/autocomplete/history_quick_provider.cc |
| =================================================================== |
| --- chrome/browser/autocomplete/history_quick_provider.cc (revision 110116) |
| +++ chrome/browser/autocomplete/history_quick_provider.cc (working copy) |
| @@ -59,11 +59,6 @@ |
| autocomplete_input_ = input; |
| - // Do some fixup on the user input before matching against it, so we provide |
| - // good results for local file paths, input with spaces, etc. |
| - if (!FixupUserInput(&autocomplete_input_)) |
|
Peter Kasting
2011/11/21 20:31:02
I think removing this may be worse than keeping it
mrossetti
2011/11/21 21:38:25
Great! I'd appreciate the advice...
When give a s
Peter Kasting
2011/11/21 22:09:00
Hmm. I didn't think about the fact that we could
|
| - return; |
| - |
| // TODO(pkasting): We should just block here until this loads. Any time |
| // someone unloads the history backend, we'll get inconsistent inline |
| // autocomplete behavior here. |
| @@ -88,11 +83,7 @@ |
| void HistoryQuickProvider::DoAutocomplete() { |
| // Get the matching URLs from the DB. |
| string16 term_string = autocomplete_input_.text(); |
| - term_string = net::UnescapeURLComponent(term_string, |
| - net::UnescapeRule::SPACES | net::UnescapeRule::URL_SPECIAL_CHARS); |
| - history::String16Vector terms( |
| - history::String16VectorFromString16(term_string, false)); |
| - ScoredHistoryMatches matches = GetIndex()->HistoryItemsForTerms(terms); |
| + ScoredHistoryMatches matches = GetIndex()->HistoryItemsForTerms(term_string); |
| if (matches.empty()) |
| return; |