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

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

Issue 7004042: Fix Wrong Offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
Index: chrome/browser/autocomplete/history_quick_provider.cc
===================================================================
--- chrome/browser/autocomplete/history_quick_provider.cc (revision 85919)
+++ chrome/browser/autocomplete/history_quick_provider.cc (working copy)
@@ -149,7 +149,7 @@
match.inline_autocomplete_offset = string16::npos;
} else {
match.inline_autocomplete_offset =
- history_match.input_location + autocomplete_input_.text().length();
+ history_match.input_location + match.fill_into_edit.length();
DCHECK_LE(match.inline_autocomplete_offset, match.fill_into_edit.length());
}

Powered by Google App Engine
This is Rietveld 408576698