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

Issue 1192373002: Prepare AutocompleteController for componentization (Closed)

Created:
5 years, 6 months ago by blundell
Modified:
5 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tapted, michaelpg+watch-options_chromium.org, Matt Giuca, tfarina, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare AutocompleteController for componentization Minor abstractions required as well as changing AutocompleteController to take in a scoped_ptr<AutocompleteProviderClient> rather than constructing one internally. BUG=371538 TBR=miguelg Committed: https://crrev.com/b11c2787e59eedf657e63d03cd3d24efa067a0f9 Cr-Commit-Position: refs/heads/master@{#335482}

Patch Set 1 #

Patch Set 2 : Remove stale include #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -143 lines) Patch
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_classifier_factory.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.h View 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 2 3 5 chunks +6 lines, -20 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/chrome_autocomplete_provider_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/test_with_browser_view.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/home_page_overlay_handler.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/omnibox.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M components/omnibox/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/omnibox/autocomplete_provider_client.h View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M components/omnibox/base_search_provider_unittest.cc View 1 2 3 3 chunks +6 lines, -62 lines 0 comments Download
M components/omnibox/history_quick_provider.h View 1 chunk +1 line, -2 lines 0 comments Download
M components/omnibox/history_quick_provider.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M components/omnibox/keyword_provider.h View 1 2 3 2 chunks +3 lines, -7 lines 0 comments Download
M components/omnibox/keyword_provider.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M components/omnibox/keyword_provider_unittest.cc View 1 2 3 5 chunks +20 lines, -10 lines 0 comments Download
A components/omnibox/mock_autocomplete_provider_client.h View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
A components/omnibox/mock_autocomplete_provider_client.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
blundell
You were correct that in the end a factory was not worth the trouble.
5 years, 6 months ago (2015-06-19 12:49:45 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1192373002/diff/20001/chrome/browser/autocomplete/autocomplete_controller.cc File chrome/browser/autocomplete/autocomplete_controller.cc (right): https://codereview.chromium.org/1192373002/diff/20001/chrome/browser/autocomplete/autocomplete_controller.cc#newcode183 chrome/browser/autocomplete/autocomplete_controller.cc:183: if (provider_types & AutocompleteProvider::TYPE_HISTORY_QUICK) Nit: Why blank lines ...
5 years, 6 months ago (2015-06-19 19:19:22 UTC) #3
blundell
TBR=miguelg for //chrome/browser/android/omnibox https://codereview.chromium.org/1192373002/diff/20001/chrome/browser/autocomplete/autocomplete_controller.cc File chrome/browser/autocomplete/autocomplete_controller.cc (right): https://codereview.chromium.org/1192373002/diff/20001/chrome/browser/autocomplete/autocomplete_controller.cc#newcode183 chrome/browser/autocomplete/autocomplete_controller.cc:183: if (provider_types & AutocompleteProvider::TYPE_HISTORY_QUICK) On 2015/06/19 ...
5 years, 6 months ago (2015-06-22 09:01:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192373002/100001
5 years, 6 months ago (2015-06-22 09:02:09 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 6 months ago (2015-06-22 10:05:22 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 10:06:05 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b11c2787e59eedf657e63d03cd3d24efa067a0f9
Cr-Commit-Position: refs/heads/master@{#335482}

Powered by Google App Engine
This is Rietveld 408576698