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

Issue 343523003: Remove AutocompleteInput Type and PageClassification. (Closed)

Created:
6 years, 6 months ago by Jun Mukai
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, tfarina, dbeam+watch-options_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, Ilya Sherman, hashimoto, Miguel Garcia, cpu_(ooo_6.6-7.5), brettw, Matt Perry
Project:
chromium
Visibility:
Public.

Description

Remove AutocompleteInput Type and PageClassification. They are just as same as the enums defined in .proto files. Removing the declaration of these types reduces unnecessary code dependency to autocomplete. BUG=384232 R=blundell@chromium.org, mpearson@chromium.org, pkasting@chromium.org TBR=brettw@chromium.org, cpu@chromium.org, miguelg@chromium.org, mpcomplete@chromium.org TEST=compile succeeds Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278722

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 5

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : fix #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -312 lines) Patch
M chrome/browser/android/omnibox/autocomplete_controller_android.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 1 2 7 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_classifier.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_classifier.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_input.h View 6 chunks +18 lines, -63 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_input.cc View 1 2 8 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_input_unittest.cc View 1 2 7 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.cc View 2 7 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result_unittest.cc View 1 2 17 chunks +19 lines, -16 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 5 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider_unittest.cc View 1 2 5 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/builtin_provider_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/extension_app_provider_unittest.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 10 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider_unittest.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 10 chunks +19 lines, -18 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider_unittest.cc View 1 2 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api_browsertest.cc View 1 2 7 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api_interactive_test.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/metrics/omnibox_metrics_provider.cc View 3 chunks +1 line, -30 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.h View 5 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial.cc View 6 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/omnibox/omnibox_field_trial_unittest.cc View 5 chunks +32 lines, -30 lines 0 comments Download
M chrome/browser/omnibox/omnibox_log.h View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/omnibox/omnibox_log.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/rlz/rlz_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 3 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_root_view.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/home_page_overlay_handler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
Jun Mukai
6 years, 6 months ago (2014-06-17 23:02:52 UTC) #1
Mark P
https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (left): https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h#oldcode20 chrome/browser/autocomplete/autocomplete_input.h:20: typedef metrics::OmniboxInputType::Type Type; pkasting explicitly asked me to add ...
6 years, 6 months ago (2014-06-17 23:11:29 UTC) #2
Peter Kasting
https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (left): https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h#oldcode20 chrome/browser/autocomplete/autocomplete_input.h:20: typedef metrics::OmniboxInputType::Type Type; On 2014/06/17 23:11:29, Mark P wrote: ...
6 years, 6 months ago (2014-06-17 23:56:14 UTC) #3
Jun Mukai
https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h File chrome/browser/autocomplete/autocomplete_input.h (left): https://codereview.chromium.org/343523003/diff/20001/chrome/browser/autocomplete/autocomplete_input.h#oldcode20 chrome/browser/autocomplete/autocomplete_input.h:20: typedef metrics::OmniboxInputType::Type Type; On 2014/06/17 23:56:14, Peter Kasting wrote: ...
6 years, 6 months ago (2014-06-18 00:38:21 UTC) #4
blundell
LGTM Did you check IWYU everywhere? I'm a little surprised by how few includes are ...
6 years, 6 months ago (2014-06-18 16:21:38 UTC) #5
Jun Mukai
https://codereview.chromium.org/343523003/diff/20001/chrome/browser/android/omnibox/autocomplete_controller_android.h File chrome/browser/android/omnibox/autocomplete_controller_android.h (right): https://codereview.chromium.org/343523003/diff/20001/chrome/browser/android/omnibox/autocomplete_controller_android.h#newcode114 chrome/browser/android/omnibox/autocomplete_controller_android.h:114: metrics::OmniboxEventProto::PageClassification ClassifyPage( On 2014/06/18 16:21:38, blundell wrote: > nit: ...
6 years, 6 months ago (2014-06-18 18:01:38 UTC) #6
blundell
On 2014/06/18 18:01:38, Jun Mukai wrote: > https://codereview.chromium.org/343523003/diff/20001/chrome/browser/android/omnibox/autocomplete_controller_android.h > File chrome/browser/android/omnibox/autocomplete_controller_android.h (right): > > https://codereview.chromium.org/343523003/diff/20001/chrome/browser/android/omnibox/autocomplete_controller_android.h#newcode114 ...
6 years, 6 months ago (2014-06-18 20:08:50 UTC) #7
Mark P
On 2014/06/18 16:21:38, blundell wrote: > LGTM > > Did you check IWYU everywhere? I'm ...
6 years, 6 months ago (2014-06-18 21:51:45 UTC) #8
Peter Kasting
On 2014/06/18 21:51:45, Mark P wrote: > On 2014/06/18 16:21:38, blundell wrote: > > LGTM ...
6 years, 6 months ago (2014-06-18 21:55:26 UTC) #9
Mark P
On 2014/06/18 21:55:26, Peter Kasting wrote: > On 2014/06/18 21:51:45, Mark P wrote: > > ...
6 years, 6 months ago (2014-06-18 22:06:01 UTC) #10
Peter Kasting
On 2014/06/18 22:06:01, Mark P wrote: > On 2014/06/18 21:55:26, Peter Kasting wrote: > > ...
6 years, 6 months ago (2014-06-19 00:12:21 UTC) #11
Jun Mukai
manually checked the files and added #include. PTAL
6 years, 6 months ago (2014-06-19 17:49:51 UTC) #12
Mark P
lgtm baring two minor comments below (wow that touched a lot of files) --mark https://codereview.chromium.org/343523003/diff/40001/chrome/browser/autocomplete/autocomplete_result.h ...
6 years, 6 months ago (2014-06-20 00:08:30 UTC) #13
Jun Mukai
https://codereview.chromium.org/343523003/diff/40001/chrome/browser/autocomplete/autocomplete_result.h File chrome/browser/autocomplete/autocomplete_result.h (right): https://codereview.chromium.org/343523003/diff/40001/chrome/browser/autocomplete/autocomplete_result.h#newcode18 chrome/browser/autocomplete/autocomplete_result.h:18: class AutocompleteInput; On 2014/06/20 00:08:29, Mark P wrote: > ...
6 years, 6 months ago (2014-06-20 00:29:51 UTC) #14
Jun Mukai
Submit with TBR, following files are trivial include/using fixes: miguelg: chrome/browser/android mpcomplete: chrome/browser/extensions/api/omnibox brettw: chrome/browser/renderer_context_menu ...
6 years, 6 months ago (2014-06-20 00:33:15 UTC) #15
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-20 00:33:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/343523003/60001
6 years, 6 months ago (2014-06-20 00:38:57 UTC) #17
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-20 01:42:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/343523003/80001
6 years, 6 months ago (2014-06-20 01:43:24 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 06:56:58 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 07:01:50 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/164543)
6 years, 6 months ago (2014-06-20 07:01:52 UTC) #22
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-20 07:12:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/343523003/80001
6 years, 6 months ago (2014-06-20 07:15:38 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 10:24:57 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 10:30:22 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/164543) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/36451) win_chromium_rel ...
6 years, 6 months ago (2014-06-20 10:30:23 UTC) #27
Jun Mukai
The CQ bit was checked by mukai@chromium.org
6 years, 6 months ago (2014-06-20 15:15:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/343523003/80001
6 years, 6 months ago (2014-06-20 15:16:24 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 15:24:50 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 15:30:09 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/164543) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/36511)
6 years, 6 months ago (2014-06-20 15:30:10 UTC) #32
Jun Mukai
6 years, 6 months ago (2014-06-20 16:56:14 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 manually as r278722 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698