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

Issue 312423003: Cleanup AutocompleteInput and AutocompleteProvider Functions (Closed)

Created:
6 years, 6 months ago by Peter Kasting
Modified:
6 years, 6 months ago
Reviewers:
Mark P
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Cleanup AutocompleteInput and AutocompleteProvider Functions * Make FixupUserInput() just return the fixed-up input text, since almost every caller wanted that (and the one that didn't, the HUP, will change in the future) * Make some functions which took an AutocompleteInput object and then only cared about the text() just take a string16 * Eliminated HistoryURLProvider::RunAutocompletePasses(), since it had only one caller, and just inline the code into Start(). Also got rid of the |fixup_input_and_run_pass_1| variable that was never false. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275540

Patch Set 1 #

Patch Set 2 : Don't change behavior #

Patch Set 3 : Simpler #

Total comments: 2

Patch Set 4 : Return a std::pair #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -136 lines) Patch
M chrome/browser/autocomplete/autocomplete_provider.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 1 2 3 4 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 3 2 chunks +85 lines, -88 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 3 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/url_prefix.cc View 1 2 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Peter Kasting
6 years, 6 months ago (2014-06-06 01:44:10 UTC) #1
Peter Kasting
I think I can make this even simpler by changing the signature of FixupUserInput() to ...
6 years, 6 months ago (2014-06-06 07:13:59 UTC) #2
Peter Kasting
Now ready for a look.
6 years, 6 months ago (2014-06-06 17:33:21 UTC) #3
Mark P
Okay. Your changelist description is now slightly out-of-date. --mark On Fri, Jun 6, 2014 at ...
6 years, 6 months ago (2014-06-06 17:46:42 UTC) #4
Peter Kasting
On 2014/06/06 17:46:42, Mark P wrote: > Okay. Your changelist description is now slightly out-of-date. ...
6 years, 6 months ago (2014-06-06 17:53:02 UTC) #5
Mark P
On Thu, Jun 5, 2014 at 6:44 PM, <pkasting@chromium.org> wrote: > Also got rid of ...
6 years, 6 months ago (2014-06-06 18:06:59 UTC) #6
Mark P
This is the last message I'll send before you tell me to look again. --mark ...
6 years, 6 months ago (2014-06-06 18:07:41 UTC) #7
Peter Kasting
PTAL. On 2014/06/06 18:06:59, Mark P wrote: > On Thu, Jun 5, 2014 at 6:44 ...
6 years, 6 months ago (2014-06-06 18:29:08 UTC) #8
Mark P
lgtm
6 years, 6 months ago (2014-06-06 18:51:22 UTC) #9
Peter Kasting
The CQ bit was checked by pkasting@chromium.org
6 years, 6 months ago (2014-06-06 21:11:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkasting@chromium.org/312423003/60001
6 years, 6 months ago (2014-06-06 21:12:02 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 22:03:15 UTC) #12
Message was sent while issue was closed.
Change committed as 275540

Powered by Google App Engine
This is Rietveld 408576698