Index: chrome/browser/autocomplete/history_provider.cc |
diff --git a/chrome/browser/autocomplete/history_provider.cc b/chrome/browser/autocomplete/history_provider.cc |
index d4df1d94fda45aaab1f28e95a383787580154026..1419a001b7029a8d34f8e44287e0e8fff35728b3 100644 |
--- a/chrome/browser/autocomplete/history_provider.cc |
+++ b/chrome/browser/autocomplete/history_provider.cc |
@@ -139,7 +139,10 @@ bool HistoryProvider::FixupUserInput(AutocompleteInput* input) { |
// to make it work properly, we need to ensure that all logic above is |
// cursor-aware and offsets the input cursor accordingly. |
// For now we simply pretend that the cursor was not set at all. |
- // See http://crbug/163932 for more details. |
+ // Note that this containing function FixupUserInput() is only called |
+ // in HistoryURL provider, which is a provider that only does prefix-type |
+ // matching using URLs from history. It does not use cursor position |
+ // in its matching and indeed makes not make sense to do so. |
Peter Kasting
2013/01/04 01:00:23
Wait, does that mean we shouldn't ever use cursor
Mark P
2013/01/04 01:10:46
I think you (and me) are right that all this code
Bart N.
2013/01/07 20:30:59
Mark, here is what I think.
If this function is i
Mark P
2013/01/07 22:17:37
Okay.
|
input->UpdateText(output, string16::npos, parts); |
return !output.empty(); |
} |