Chromium Code Reviews| Index: chrome/browser/autocomplete/history_provider.cc |
| diff --git a/chrome/browser/autocomplete/history_provider.cc b/chrome/browser/autocomplete/history_provider.cc |
| index e9495d120b851e6154515b9b695933d3455c9f91..669dc128209fa26ddd1c7ab568ca7f6b327ff38f 100644 |
| --- a/chrome/browser/autocomplete/history_provider.cc |
| +++ b/chrome/browser/autocomplete/history_provider.cc |
| @@ -134,7 +134,10 @@ bool HistoryProvider::FixupUserInput(AutocompleteInput* input) { |
| url_parse::Parsed parts; |
| URLFixerUpper::SegmentURL(output, &parts); |
| - input->UpdateText(output, parts); |
| + // TODO: Rather then risking bogus cursor location, we simply pretend it was |
| + // not set. It should be fine as long as the current implementation is not |
| + // cursor aware (which is true as of Nov 2012). |
|
Peter Kasting
2012/12/05 20:49:38
We probably should do the right thing here, since
Bart N.
2012/12/06 21:43:32
Done.
|
| + input->UpdateText(output, string16::npos, parts); |
| return !output.empty(); |
| } |