DescriptionMake HistoryURLProvider::SuggestExactInput() non-static, and take only the
necessary input args, instead of a whole AutocompleteInput.
We need a nonstatic instance of HistoryURLProvider to pass in anyway, so there's
no real win from this being static. Not using an AutocompleteInput will be
useful in the future when I'll be adding a call to this from
OmniboxEditModel::OpenMatch(), which doesn't have an AutocompleteInput.
This also sets |trim_http| to false when called from AcceptInput(); there's no
need to trim the scheme here (since the user won't see the trimmed string) and
doing so is actively wrong if the user typed ctrl-enter on e.g. "http://google".
BUG=151044
TEST=none
R=msw@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232850
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|