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

Issue 54903004: Make HistoryURLProvider::SuggestExactInput() non-static, and take only the (Closed)

Created:
7 years, 1 month ago by Peter Kasting
Modified:
7 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -57 lines) Patch
M chrome/browser/autocomplete/history_url_provider.h View 1 chunk +11 lines, -11 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 6 chunks +41 lines, -41 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Kasting
7 years, 1 month ago (2013-11-01 02:09:42 UTC) #1
msw
LGTM
7 years, 1 month ago (2013-11-01 15:51:39 UTC) #2
Peter Kasting
7 years, 1 month ago (2013-11-05 00:25:01 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r232850 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698