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

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

Issue 11414303: Make Google Search autocomplete provider cursor aware. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698