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

Issue 11198074: Initial implementation of dedupping search provider's URLs. (Closed)

Created:
8 years, 2 months ago by Bart N.
Modified:
8 years, 1 month ago
CC:
chromium-reviews, James Su, H Fung
Visibility:
Public.

Description

Initial implementation of dedupping search provider's URLs. There are two main sources of such URLs: (1) search provider itself (2) history URL providers (after visiting a previously suggested URL). A search provider URL may contain time/position specific CGI params, which if left, may prevent from dedupping. BUG=146551 TEST=AutocompleteResultTest::SortAndCullDuplicateSearchURLs Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164790

Patch Set 1 #

Patch Set 2 : Fix a minor compilation error. #

Total comments: 13

Patch Set 3 : Addressed comments. #

Total comments: 18

Patch Set 4 : Addressed comments. #

Patch Set 5 : #

Patch Set 6 : Fixed a broken test. Added a test search engine (foo). #

Patch Set 7 : Fix failing tests by making sure that TemplateURLService is loaded when needed. #

Patch Set 8 : #

Patch Set 9 : Added missing initialization of country code necessary for Android unit tests. #

Patch Set 10 : Add a missing include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -35 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 3 4 5 6 7 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_controller.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 4 chunks +34 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_provider_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.h View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result.cc View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_result_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +68 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/history_url_provider_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/popup_blocker_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_popup_model.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
beaudoin
http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc#newcode366 chrome/browser/autocomplete/autocomplete_match.cc:366: // like aqs/oq/aq. I would not be opposed to ...
8 years, 2 months ago (2012-10-19 14:25:34 UTC) #1
Peter Kasting
http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc#newcode373 chrome/browser/autocomplete/autocomplete_match.cc:373: // is sufficient from de-dupping perspective). On 2012/10/19 14:25:34, ...
8 years, 2 months ago (2012-10-19 22:49:33 UTC) #2
Bart N.
Peter - we essentially have to agree on two high level issues raised so far: ...
8 years, 2 months ago (2012-10-22 18:20:24 UTC) #3
beaudoin
http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc#newcode373 chrome/browser/autocomplete/autocomplete_match.cc:373: // is sufficient from de-dupping perspective). On 2012/10/22 18:20:24, ...
8 years, 2 months ago (2012-10-22 18:43:23 UTC) #4
Bart N.
http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc#newcode373 chrome/browser/autocomplete/autocomplete_match.cc:373: // is sufficient from de-dupping perspective). On 2012/10/22 18:43:23, ...
8 years, 2 months ago (2012-10-22 19:19:42 UTC) #5
Peter Kasting
I think you guys have the right sorts of concerns in mind in general. I ...
8 years, 2 months ago (2012-10-22 21:08:01 UTC) #6
beaudoin
http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/3002/chrome/browser/autocomplete/autocomplete_match.cc#newcode373 chrome/browser/autocomplete/autocomplete_match.cc:373: // is sufficient from de-dupping perspective). On 2012/10/22 19:19:42, ...
8 years, 2 months ago (2012-10-22 21:36:48 UTC) #7
Bart N.
On 2012/10/22 21:08:01, Peter Kasting wrote: > I think you guys have the right sorts ...
8 years, 2 months ago (2012-10-22 21:39:13 UTC) #8
Bart N.
On 2012/10/22 21:36:48, beaudoin wrote: > For the moment, I would be inclined to say ...
8 years, 2 months ago (2012-10-22 21:41:58 UTC) #9
Bart N.
BTW, I chatted with Harry and one idea we could implement is to piggy back ...
8 years, 2 months ago (2012-10-22 21:53:57 UTC) #10
Peter Kasting
On 2012/10/22 21:39:13, Bart N. wrote: > On 2012/10/22 21:08:01, Peter Kasting wrote: > > ...
8 years, 2 months ago (2012-10-22 21:55:54 UTC) #11
Peter Kasting
On 2012/10/22 21:53:57, Bart N. wrote: > BTW, I chatted with Harry and one idea ...
8 years, 2 months ago (2012-10-22 21:57:23 UTC) #12
Bart N.
On 2012/10/22 21:55:54, Peter Kasting wrote: > On 2012/10/22 21:39:13, Bart N. wrote: > > ...
8 years, 2 months ago (2012-10-22 22:07:02 UTC) #13
Peter Kasting
You don't want SearchProvider, you want TemplateURLService/TemplateURL/TemplateURLRef. TemplateURL* aren't going to be dropping parameters from ...
8 years, 2 months ago (2012-10-22 22:10:53 UTC) #14
Bart N.
On 2012/10/22 22:10:53, Peter Kasting wrote: > You don't want SearchProvider, you want > TemplateURLService/TemplateURL/TemplateURLRef. ...
8 years, 2 months ago (2012-10-22 22:15:36 UTC) #15
Peter Kasting
On 2012/10/22 22:15:36, Bart N. wrote: > On 2012/10/22 22:10:53, Peter Kasting wrote: > > ...
8 years, 2 months ago (2012-10-22 22:22:09 UTC) #16
Bart N.
On 2012/10/22 22:22:09, Peter Kasting wrote: > On 2012/10/22 22:15:36, Bart N. wrote: > > ...
8 years, 2 months ago (2012-10-22 22:32:16 UTC) #17
beaudoin
(Jumping back a little, sorry...) The question here is: "Given url_a and url_b will the ...
8 years, 2 months ago (2012-10-22 22:40:44 UTC) #18
Peter Kasting
On 2012/10/22 22:32:16, Bart N. wrote: > I still don't understand what's wrong with my ...
8 years, 2 months ago (2012-10-22 22:45:16 UTC) #19
Bart N.
On 2012/10/22 22:40:44, beaudoin wrote: > (Jumping back a little, sorry...) > > The question ...
8 years, 2 months ago (2012-10-22 22:52:01 UTC) #20
Peter Kasting
On 2012/10/22 22:40:44, beaudoin wrote: > The question here is: "Given url_a and url_b will ...
8 years, 2 months ago (2012-10-22 22:53:44 UTC) #21
Bart N.
On 2012/10/22 22:45:16, Peter Kasting wrote: > On 2012/10/22 22:32:16, Bart N. wrote: > > ...
8 years, 2 months ago (2012-10-22 22:55:20 UTC) #22
Peter Kasting
On 2012/10/22 22:52:01, Bart N. wrote: > On 2012/10/22 22:40:44, beaudoin wrote: > > The ...
8 years, 2 months ago (2012-10-22 22:56:49 UTC) #23
Peter Kasting
On 2012/10/22 22:55:20, Bart N. wrote: > On 2012/10/22 22:45:16, Peter Kasting wrote: > > ...
8 years, 2 months ago (2012-10-22 23:02:09 UTC) #24
beaudoin
I agree with solving the general case (it's not too much harder) but still think ...
8 years, 2 months ago (2012-10-22 23:08:15 UTC) #25
Bart N.
On 2012/10/22 23:08:15, beaudoin wrote: > I agree with solving the general case (it's not ...
8 years, 2 months ago (2012-10-22 23:31:05 UTC) #26
Peter Kasting
On 2012/10/22 23:31:05, Bart N. wrote: > On 2012/10/22 23:08:15, beaudoin wrote: > > I ...
8 years, 2 months ago (2012-10-22 23:54:54 UTC) #27
Bart N.
Peter/Philippe, I've partially addressed your comments and I'd like to submit it in this form ...
8 years, 1 month ago (2012-10-25 17:46:27 UTC) #28
beaudoin
lgtm LGTM
8 years, 1 month ago (2012-10-26 20:13:46 UTC) #29
Peter Kasting
LGTM http://codereview.chromium.org/11198074/diff/28001/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): http://codereview.chromium.org/11198074/diff/28001/chrome/browser/autocomplete/autocomplete_match.cc#newcode367 chrome/browser/autocomplete/autocomplete_match.cc:367: // term substitutions like aqs/oq/aq. Nit: URL -> ...
8 years, 1 month ago (2012-10-26 22:13:49 UTC) #30
Peter Kasting
(Also please look into test failures)
8 years, 1 month ago (2012-10-26 22:14:17 UTC) #31
Bart N.
Thanks for the review. I'm still running tests to make sure all looks good before ...
8 years, 1 month ago (2012-10-26 23:36:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11198074/44015
8 years, 1 month ago (2012-10-29 17:44:31 UTC) #33
commit-bot: I haz the power
Presubmit check for 11198074-44015 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-10-29 17:44:41 UTC) #34
sreeram
c/b/instant lgtm
8 years, 1 month ago (2012-10-29 17:49:15 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11198074/44015
8 years, 1 month ago (2012-10-29 17:50:59 UTC) #36
commit-bot: I haz the power
Presubmit check for 11198074-44015 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-10-29 17:51:09 UTC) #37
Bart N.
Scott - do you mind stamping this CL for chrome/browser/*? I'm missing OWNER"s approval.
8 years, 1 month ago (2012-10-29 17:55:21 UTC) #38
sky
LGTM
8 years, 1 month ago (2012-10-29 18:05:28 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@chromium.org/11198074/44015
8 years, 1 month ago (2012-10-29 20:23:43 UTC) #40
Bart N.
On 2012/10/29 20:23:43, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years, 1 month ago (2012-10-29 22:24:19 UTC) #41
Mark P
On 2012/10/29 22:24:19, Bart N. wrote: > On 2012/10/29 20:23:43, I haz the power (commit-bot) ...
8 years, 1 month ago (2012-10-29 22:41:00 UTC) #42
Bart N.
> The commit queue usually retries failed tests. If it's flaky, the retry may > ...
8 years, 1 month ago (2012-10-29 22:48:41 UTC) #43
commit-bot: I haz the power
8 years, 1 month ago (2012-10-30 00:20:29 UTC) #44
Change committed as 164790

Powered by Google App Engine
This is Rietveld 408576698