Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: chrome/browser/autocomplete/history_provider.cc

Issue 11734029: Omnibox: revise comment pointing to wrong bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: expand comment Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698