Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Omnibox: Fix Inline Autocompletion of Navsuggest in Forced Query Mode
This moves the block of code that adds the "?" from one place to another. Its original location was wrong because it incremented |inline_autocomplete_offset| before passing it to FormatUrl(). This could change how FormatUrl() would correct inline_autocomplete_offset when its value is near the end of the formatted string. This is wrong. In both locations, in effect we are adding the "?" prefix after FormatUrl() runs. This means we should correct the inline_autocomplete_offset value to compensate for the extra character "?" only after FormatUrl() runs. This fixes the bug. I also added a test that would've caught this issue. BUG=313451 Review URL: https://codereview.chromium.org/62153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233544 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information