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

Issue 10909130: autocomplete: Add AutocompleteProvider::Type enum. (Closed)

Created:
8 years, 3 months ago by Daniel Erat
Modified:
8 years, 3 months ago
Reviewers:
Mark P, Peter Kasting
CC:
chromium-reviews, Aaron Boodman, James Su, tfarina, mihaip-chromium-reviews_chromium.org, xiyuan, Tyler Breisacher (Chromium)
Visibility:
Public.

Description

autocomplete: Add AutocompleteProvider::Type enum. This drops the AutocompleteProvider class's name field in favor of an enum describing its type. It also updates AutocompleteController to take a bitmap describing the types of providers that it should create, making it easier to use AutocompleteController in places besides the omnibox. BUG=141877, 147724 TEST=none TBR=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156004

Patch Set 1 #

Patch Set 2 : update comments #

Total comments: 28

Patch Set 3 : apply review feedback #

Patch Set 4 : merge #

Patch Set 5 : more indentation changes #

Total comments: 12

Patch Set 6 : merge #

Patch Set 7 : apply review feedback #

Patch Set 8 : merge #

Patch Set 9 : remove one more use of test constructor #

Patch Set 10 : fix inadvertently-change parameter in test #

Total comments: 15

Patch Set 11 : remove loop from test constructor #

Patch Set 12 : remove test constructor #

Patch Set 13 : remove GetProvider() #

Patch Set 14 : add !! for windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -218 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_classifier.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_classifier.cc View 1 2 3 4 5 6 1 chunk +15 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -24 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +42 lines, -25 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.h View 1 2 3 chunks +24 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 1 2 1 chunk +57 lines, -22 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +53 lines, -70 lines 0 comments Download
M chrome/browser/autocomplete/builtin_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/extension_app_provider.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/history_contents_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search_builder.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/search_builder.cc View 1 2 2 chunks +16 lines, -33 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/home_page_overlay_handler.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Daniel Erat
http://codereview.chromium.org/10909130/diff/6001/chrome/browser/autocomplete/autocomplete_provider_unittest.cc File chrome/browser/autocomplete/autocomplete_provider_unittest.cc (right): http://codereview.chromium.org/10909130/diff/6001/chrome/browser/autocomplete/autocomplete_provider_unittest.cc#newcode48 chrome/browser/autocomplete/autocomplete_provider_unittest.cc:48: : AutocompleteProvider(NULL, profile, AutocompleteProvider::TYPE_SEARCH), I'm using TYPE_SEARCH pretty arbitrarily ...
8 years, 3 months ago (2012-09-07 21:45:55 UTC) #1
Peter Kasting
I think we can also eliminate set_search_provider() by converting search_provider_unittest.cc to use this new framework. ...
8 years, 3 months ago (2012-09-07 23:23:02 UTC) #2
Daniel Erat
FYI xiyuan for app list stuff CC mpearson for metrics enum question http://codereview.chromium.org/10909130/diff/6001/chrome/browser/autocomplete/autocomplete_classifier.cc File chrome/browser/autocomplete/autocomplete_classifier.cc ...
8 years, 3 months ago (2012-09-08 16:37:36 UTC) #3
Mark P
http://codereview.chromium.org/10909130/diff/6001/chrome/browser/autocomplete/autocomplete_provider.cc File chrome/browser/autocomplete/autocomplete_provider.cc (right): http://codereview.chromium.org/10909130/diff/6001/chrome/browser/autocomplete/autocomplete_provider.cc#newcode66 chrome/browser/autocomplete/autocomplete_provider.cc:66: AsOmniboxEventProviderType() const { On 2012/09/08 16:37:36, Daniel Erat wrote: ...
8 years, 3 months ago (2012-09-08 22:31:07 UTC) #4
Peter Kasting
On 2012/09/08 22:31:07, Mark P wrote: > I don't think there's simplification we can do ...
8 years, 3 months ago (2012-09-09 01:33:48 UTC) #5
Mark P
On 2012/09/09 01:33:48, Peter Kasting wrote: > On 2012/09/08 22:31:07, Mark P wrote: > > ...
8 years, 3 months ago (2012-09-09 17:02:09 UTC) #6
Mark P
8 years, 3 months ago (2012-09-09 17:02:16 UTC) #7
Peter Kasting
It sounds to me like the right thing to do is to ensure the two ...
8 years, 3 months ago (2012-09-10 17:54:19 UTC) #8
Daniel Erat
On 2012/09/10 17:54:19, Peter Kasting wrote: > It sounds to me like the right thing ...
8 years, 3 months ago (2012-09-10 18:33:54 UTC) #9
Peter Kasting
No bug needed if you want to do it yourself. If you want me to, ...
8 years, 3 months ago (2012-09-10 18:34:54 UTC) #10
Peter Kasting
LGTM For any new TODOs you're not going to be handling, go ahead and file ...
8 years, 3 months ago (2012-09-11 00:05:39 UTC) #11
Daniel Erat
http://codereview.chromium.org/10909130/diff/8002/chrome/browser/autocomplete/autocomplete_classifier.cc File chrome/browser/autocomplete/autocomplete_classifier.cc (right): http://codereview.chromium.org/10909130/diff/8002/chrome/browser/autocomplete/autocomplete_classifier.cc#newcode28 chrome/browser/autocomplete/autocomplete_classifier.cc:28: kDefaultOmniboxProviders)), On 2012/09/11 00:05:39, Peter Kasting wrote: > Nit: ...
8 years, 3 months ago (2012-09-11 00:42:19 UTC) #12
Daniel Erat
http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.h File chrome/browser/autocomplete/autocomplete_controller.h (right): http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.h#newcode71 chrome/browser/autocomplete/autocomplete_controller.h:71: for (ACProviders::iterator it = providers_.begin(); It looks like I ...
8 years, 3 months ago (2012-09-11 01:33:08 UTC) #13
Peter Kasting
http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.cc File chrome/browser/autocomplete/autocomplete_controller.cc (right): http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.cc#newcode93 chrome/browser/autocomplete/autocomplete_controller.cc:93: // History quick provider can be used on all ...
8 years, 3 months ago (2012-09-11 01:38:42 UTC) #14
Daniel Erat
http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.cc File chrome/browser/autocomplete/autocomplete_controller.cc (right): http://codereview.chromium.org/10909130/diff/1031/chrome/browser/autocomplete/autocomplete_controller.cc#newcode93 chrome/browser/autocomplete/autocomplete_controller.cc:93: // History quick provider can be used on all ...
8 years, 3 months ago (2012-09-11 02:09:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10909130/6037
8 years, 3 months ago (2012-09-11 04:28:18 UTC) #16
commit-bot: I haz the power
Presubmit check for 10909130-6037 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-11 04:28:37 UTC) #17
Daniel Erat
TBR sky for miscellaneous chrome/browser updates
8 years, 3 months ago (2012-09-11 04:37:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10909130/6037
8 years, 3 months ago (2012-09-11 04:37:26 UTC) #19
commit-bot: I haz the power
Try job failure for 10909130-6037 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-09-11 06:02:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/10909130/6037
8 years, 3 months ago (2012-09-11 12:39:06 UTC) #21
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 13:17:02 UTC) #22
Change committed as 156004

Powered by Google App Engine
This is Rietveld 408576698