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

Issue 165163002: Handle Search suggest subtypes for Shortcuts DB (Closed)

Created:
6 years, 10 months ago by Anuj
Modified:
6 years, 9 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Handle SEARCH_SUGGEST_.+ types for Shortcuts DB - I think fill_into_edit should work just fine for Search Suggest types. BUG=341137 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259206

Patch Set 1 : With unittest #

Total comments: 6

Patch Set 2 : Got rid of destination url #

Patch Set 3 : Workaround for destination url #

Patch Set 4 : Rebased on refactoring #

Total comments: 8

Patch Set 5 : New implementation as discussed #

Patch Set 6 : Fixed tests #

Total comments: 6

Patch Set 7 : Addressed comments #

Total comments: 4

Patch Set 8 : Submit candidate #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -33 lines) Patch
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/shortcuts_backend.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/shortcuts_backend.cc View 1 2 3 4 5 6 7 5 chunks +28 lines, -16 lines 2 comments Download
M chrome/browser/autocomplete/shortcuts_backend_unittest.cc View 1 2 3 4 5 7 chunks +78 lines, -13 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Anuj
PTAL
6 years, 10 months ago (2014-02-14 00:01:58 UTC) #1
Peter Kasting
https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc File chrome/browser/history/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc#newcode51 chrome/browser/history/shortcuts_backend.cc:51: match.stripped_destination_url : match.destination_url; If we needed to do this, ...
6 years, 10 months ago (2014-02-14 05:35:24 UTC) #2
Anuj
I am not sure about stripping the additional query parameters. Please see comments below. I ...
6 years, 10 months ago (2014-02-14 20:18:07 UTC) #3
Peter Kasting
https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc File chrome/browser/history/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc#newcode51 chrome/browser/history/shortcuts_backend.cc:51: match.stripped_destination_url : match.destination_url; On 2014/02/14 20:18:07, Anuj wrote: > ...
6 years, 10 months ago (2014-02-14 21:40:21 UTC) #4
Anuj
PTAL https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc File chrome/browser/history/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/30001/chrome/browser/history/shortcuts_backend.cc#newcode51 chrome/browser/history/shortcuts_backend.cc:51: match.stripped_destination_url : match.destination_url; On 2014/02/14 21:40:21, Peter Kasting ...
6 years, 10 months ago (2014-02-14 22:09:55 UTC) #5
Peter Kasting
You know, now that I think about it, I realize there's a safer way to ...
6 years, 10 months ago (2014-02-14 22:16:36 UTC) #6
Anuj
On 2014/02/14 22:16:36, Peter Kasting wrote: > You know, now that I think about it, ...
6 years, 10 months ago (2014-02-14 22:25:35 UTC) #7
Peter Kasting
On 2014/02/14 22:25:35, Anuj wrote: > On 2014/02/14 22:16:36, Peter Kasting wrote: > > You ...
6 years, 10 months ago (2014-02-14 22:28:33 UTC) #8
Anuj
On 2014/02/14 22:28:33, Peter Kasting wrote: > On 2014/02/14 22:25:35, Anuj wrote: > > On ...
6 years, 10 months ago (2014-02-15 01:20:05 UTC) #9
Peter Kasting
On 2014/02/15 01:20:05, Anuj wrote: > In either approach, I will need access to profile ...
6 years, 10 months ago (2014-02-19 20:32:23 UTC) #10
Anuj
On 2014/02/19 20:32:23, Peter Kasting wrote: > On 2014/02/15 01:20:05, Anuj wrote: > > In ...
6 years, 10 months ago (2014-02-22 01:16:54 UTC) #11
Peter Kasting
On 2014/02/22 01:16:54, Anuj wrote: > On 2014/02/19 20:32:23, Peter Kasting wrote: > > On ...
6 years, 10 months ago (2014-02-22 01:40:11 UTC) #12
Anuj
On 2014/02/22 01:40:11, Peter Kasting wrote: > On 2014/02/22 01:16:54, Anuj wrote: > > The ...
6 years, 10 months ago (2014-02-22 02:14:00 UTC) #13
Peter Kasting
On 2014/02/22 02:14:00, Anuj wrote: > On 2014/02/22 01:40:11, Peter Kasting wrote: > > On ...
6 years, 10 months ago (2014-02-22 02:15:09 UTC) #14
Anuj
On 2014/02/22 02:15:09, Peter Kasting wrote: > On 2014/02/22 02:14:00, Anuj wrote: > > On ...
6 years, 9 months ago (2014-02-28 00:47:48 UTC) #15
Peter Kasting
On 2014/02/28 00:47:48, Anuj wrote: > On 2014/02/22 02:15:09, Peter Kasting wrote: > > On ...
6 years, 9 months ago (2014-02-28 00:58:39 UTC) #16
Anuj
I tried moving shortcuts_backend* stuff to chrome/browser/autocomplete. But the ShortcutsBackend is in history namespace. Also, ...
6 years, 9 months ago (2014-03-14 20:48:12 UTC) #17
Peter Kasting
On 2014/03/14 20:48:12, Anuj wrote: > I tried moving shortcuts_backend* stuff to chrome/browser/autocomplete. But the ...
6 years, 9 months ago (2014-03-14 21:00:58 UTC) #18
Anuj
On 2014/03/14 21:00:58, Peter Kasting wrote: > On 2014/03/14 20:48:12, Anuj wrote: > > I ...
6 years, 9 months ago (2014-03-14 21:05:29 UTC) #19
Anuj
On 2014/03/14 21:05:29, Anuj wrote: > On 2014/03/14 21:00:58, Peter Kasting wrote: > > On ...
6 years, 9 months ago (2014-03-14 21:08:29 UTC) #20
Anuj
Reminder!
6 years, 9 months ago (2014-03-17 17:17:56 UTC) #21
Peter Kasting
On 2014/03/17 17:17:56, Anuj wrote: > Reminder! I'm awaiting Brett's signoff on https://codereview.chromium.org/200493006/ , which ...
6 years, 9 months ago (2014-03-18 01:04:54 UTC) #22
Peter Kasting
On 2014/03/18 01:04:54, Peter Kasting wrote: > I'm awaiting Brett's signoff on https://codereview.chromium.org/200493006/ , > ...
6 years, 9 months ago (2014-03-19 00:14:11 UTC) #23
Anuj
PTAL
6 years, 9 months ago (2014-03-20 19:13:22 UTC) #24
Peter Kasting
https://codereview.chromium.org/165163002/diff/300001/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://codereview.chromium.org/165163002/diff/300001/chrome/browser/autocomplete/autocomplete_match.cc#newcode345 chrome/browser/autocomplete/autocomplete_match.cc:345: type == AutocompleteMatchType::SEARCH_OTHER_ENGINE; Nit: Can simplify by removing everything ...
6 years, 9 months ago (2014-03-21 18:36:26 UTC) #25
Anuj
PTAL https://codereview.chromium.org/165163002/diff/300001/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://codereview.chromium.org/165163002/diff/300001/chrome/browser/autocomplete/autocomplete_match.cc#newcode345 chrome/browser/autocomplete/autocomplete_match.cc:345: type == AutocompleteMatchType::SEARCH_OTHER_ENGINE; On 2014/03/21 18:36:26, Peter Kasting ...
6 years, 9 months ago (2014-03-24 07:16:16 UTC) #26
Peter Kasting
https://codereview.chromium.org/165163002/diff/340001/chrome/browser/autocomplete/shortcuts_backend.cc File chrome/browser/autocomplete/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/340001/chrome/browser/autocomplete/shortcuts_backend.cc#newcode144 chrome/browser/autocomplete/shortcuts_backend.cc:144: const AutocompleteMatch::Type match_type = GetTypeForShortcut(match.type); Nit: Can you inline ...
6 years, 9 months ago (2014-03-24 18:59:18 UTC) #27
Anuj
PTAL https://codereview.chromium.org/165163002/diff/340001/chrome/browser/autocomplete/shortcuts_backend.cc File chrome/browser/autocomplete/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/340001/chrome/browser/autocomplete/shortcuts_backend.cc#newcode144 chrome/browser/autocomplete/shortcuts_backend.cc:144: const AutocompleteMatch::Type match_type = GetTypeForShortcut(match.type); On 2014/03/24 18:59:19, ...
6 years, 9 months ago (2014-03-24 21:45:49 UTC) #28
Peter Kasting
LGTM https://codereview.chromium.org/165163002/diff/350001/chrome/browser/autocomplete/base_search_provider.cc File chrome/browser/autocomplete/base_search_provider.cc (right): https://codereview.chromium.org/165163002/diff/350001/chrome/browser/autocomplete/base_search_provider.cc#newcode130 chrome/browser/autocomplete/base_search_provider.cc:130: const base::string16& match_contents, You don't seem to use ...
6 years, 9 months ago (2014-03-24 21:53:06 UTC) #29
Anuj
Done. submitting https://codereview.chromium.org/165163002/diff/350001/chrome/browser/autocomplete/base_search_provider.cc File chrome/browser/autocomplete/base_search_provider.cc (right): https://codereview.chromium.org/165163002/diff/350001/chrome/browser/autocomplete/base_search_provider.cc#newcode130 chrome/browser/autocomplete/base_search_provider.cc:130: const base::string16& match_contents, On 2014/03/24 21:53:07, Peter ...
6 years, 9 months ago (2014-03-25 06:32:04 UTC) #30
Anuj
The CQ bit was checked by skanuj@chromium.org
6 years, 9 months ago (2014-03-25 06:32:09 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/165163002/370001
6 years, 9 months ago (2014-03-25 06:32:12 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skanuj@chromium.org/165163002/370001
6 years, 9 months ago (2014-03-25 12:50:23 UTC) #33
commit-bot: I haz the power
Change committed as 259206
6 years, 9 months ago (2014-03-25 15:33:45 UTC) #34
erikchen
A revert of this CL has been created in https://codereview.chromium.org/211283005/ by erikchen@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-25 17:50:17 UTC) #35
Anuj
https://codereview.chromium.org/165163002/diff/370001/chrome/browser/autocomplete/shortcuts_backend.cc File chrome/browser/autocomplete/shortcuts_backend.cc (right): https://codereview.chromium.org/165163002/diff/370001/chrome/browser/autocomplete/shortcuts_backend.cc#newcode143 chrome/browser/autocomplete/shortcuts_backend.cc:143: const base::string16& suggestion = match.search_terms_args->search_terms; Accessing search terms without ...
6 years, 9 months ago (2014-03-25 20:11:59 UTC) #36
Peter Kasting
6 years, 9 months ago (2014-03-25 20:40:52 UTC) #37
Message was sent while issue was closed.
https://codereview.chromium.org/165163002/diff/370001/chrome/browser/autocomp...
File chrome/browser/autocomplete/shortcuts_backend.cc (right):

https://codereview.chromium.org/165163002/diff/370001/chrome/browser/autocomp...
chrome/browser/autocomplete/shortcuts_backend.cc:143: const base::string16&
suggestion = match.search_terms_args->search_terms;
On 2014/03/25 20:12:00, Anuj wrote:
> Accessing search terms without knowing if the match is of search type caused
> problem here.

Looks like this is fixable by just inlining that temp into the one use below,
now that the refactored CreateSearchSuggestion() removed the need to refer to
|suggestion| repeatedly here.

Powered by Google App Engine
This is Rietveld 408576698