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

Issue 415053002: Remove AutocompleteMatch::is_starred (Closed)

Created:
6 years, 5 months ago by hashimoto
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, yzshen+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, ben+mojo_chromium.org, abarth-chromium, Aaron Boodman, arv+watch_chromium.org, asvitkine+watch_chromium.org, darin (slow to review), James Su
Project:
chromium
Visibility:
Public.

Description

Remove AutocompleteMatch::is_starred Instead of letting every AutocompleteProvider implementation depend on BookmarkModel, let OmniboxPopupModel and others take the responsibility to check the bookmark status. BUG=388515 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286110

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 7

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -45 lines) Patch
M chrome/browser/android/omnibox/autocomplete_controller_android.cc View 1 2 3 4 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider.cc View 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/autocomplete/bookmark_provider.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_provider.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/metrics/omnibox_metrics_provider.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/search/omnibox_provider.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_popup_model.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_popup_model.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_result_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc View 1 2 3 chunks +20 lines, -1 line 0 comments Download
M components/metrics/proto/omnibox_event.proto View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
hashimoto
6 years, 5 months ago (2014-07-24 07:25:20 UTC) #1
Ilya Sherman
https://codereview.chromium.org/415053002/diff/40001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (left): https://codereview.chromium.org/415053002/diff/40001/components/metrics/proto/omnibox_event.proto#oldcode232 components/metrics/proto/omnibox_event.proto:232: This should remain, but perhaps be marked deprecated (and ...
6 years, 5 months ago (2014-07-24 17:47:30 UTC) #2
Peter Kasting
I don't know if I love this change, since it seems like we'll end up ...
6 years, 5 months ago (2014-07-24 18:51:34 UTC) #3
hashimoto
https://codereview.chromium.org/415053002/diff/40001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (left): https://codereview.chromium.org/415053002/diff/40001/chrome/browser/autocomplete/search_provider.cc#oldcode426 chrome/browser/autocomplete/search_provider.cc:426: UMA_HISTOGRAM_TIMES("Omnibox.SearchProvider.UpdateStarredTime", On 2014/07/24 18:51:34, Peter Kasting wrote: > Make ...
6 years, 5 months ago (2014-07-25 08:36:12 UTC) #4
hashimoto
On 2014/07/24 18:51:34, Peter Kasting wrote: > I don't know if I love this change, ...
6 years, 5 months ago (2014-07-25 08:57:43 UTC) #5
Peter Kasting
On 2014/07/25 08:57:43, hashimoto wrote: > Even if there are people who bookmark search URLs, ...
6 years, 5 months ago (2014-07-25 18:18:44 UTC) #6
Ilya Sherman
https://codereview.chromium.org/415053002/diff/60001/components/metrics/proto/omnibox_event.proto File components/metrics/proto/omnibox_event.proto (right): https://codereview.chromium.org/415053002/diff/60001/components/metrics/proto/omnibox_event.proto#newcode231 components/metrics/proto/omnibox_event.proto:231: optional bool is_starred = 4 [deprecated=true]; Thanks. Please make ...
6 years, 5 months ago (2014-07-25 20:13:56 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc:149: for (size_t i = 0; i < result->combined_results.size(); ...
6 years, 5 months ago (2014-07-26 02:12:08 UTC) #8
hashimoto
https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc:149: for (size_t i = 0; i < result->combined_results.size(); ++i) ...
6 years, 4 months ago (2014-07-28 06:49:43 UTC) #9
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 4 months ago (2014-07-28 06:49:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/415053002/60001
6 years, 4 months ago (2014-07-28 06:50:07 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-07-28 07:01:48 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-28 07:03:11 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/234) ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/builds/236) ios_rel_device_ninja ...
6 years, 4 months ago (2014-07-28 07:03:12 UTC) #14
hashimoto
Ilya, could you review this change as an owner of chrome/browser/metrics and components/metrics? Ted, could ...
6 years, 4 months ago (2014-07-28 07:47:24 UTC) #15
Peter Kasting
https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc:149: for (size_t i = 0; i < result->combined_results.size(); ++i) ...
6 years, 4 months ago (2014-07-28 11:11:02 UTC) #16
Ted C
On 2014/07/28 11:11:02, Peter Kasting wrote: > https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc > File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): > > https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 ...
6 years, 4 months ago (2014-07-28 15:12:45 UTC) #17
Ilya Sherman
LGTM, thanks.
6 years, 4 months ago (2014-07-28 21:01:28 UTC) #18
hashimoto
https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc:149: for (size_t i = 0; i < result->combined_results.size(); ++i) ...
6 years, 4 months ago (2014-07-29 02:03:49 UTC) #19
Peter Kasting
https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc:149: for (size_t i = 0; i < result->combined_results.size(); ++i) ...
6 years, 4 months ago (2014-07-29 02:19:51 UTC) #20
hashimoto
On 2014/07/29 02:19:51, Peter Kasting wrote: > https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc > File chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc (right): > > https://codereview.chromium.org/415053002/diff/60001/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc#newcode149 ...
6 years, 4 months ago (2014-07-29 02:46:36 UTC) #21
Peter Kasting
On 2014/07/29 02:46:36, hashimoto wrote: > Can we go ahead with iterating with indices for ...
6 years, 4 months ago (2014-07-29 03:12:12 UTC) #22
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 4 months ago (2014-07-29 03:57:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/415053002/80001
6 years, 4 months ago (2014-07-29 03:58:18 UTC) #24
commit-bot: I haz the power
Change committed as 286110
6 years, 4 months ago (2014-07-29 07:44:58 UTC) #25
Mark P
Reviewers, In the future, please tell me when someone wants to remove logging code that ...
6 years, 4 months ago (2014-07-30 17:37:37 UTC) #26
Ilya Sherman
6 years, 4 months ago (2014-07-30 20:31:31 UTC) #27
Message was sent while issue was closed.
On 2014/07/30 17:37:37, Mark P wrote:
> Reviewers,
> 
> In the future, please tell me when someone wants to remove logging code that I
> added.  In this case it happens to be okay (it's been a few months since I
> looked at that field with logs analysis), but I don't like the precedent and
> would've appreciated a warning.
> 
> thanks,
> mark

Sorry about that.  I'll try to make sure to forward omnibox proto reviews to you
in the future :)

Powered by Google App Engine
This is Rietveld 408576698