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

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed)

Created:
8 years, 6 months ago by Bart N
Modified:
8 years, 6 months ago
Reviewers:
msw, Peter Kasting
CC:
chromium-reviews, James Su, Abhi D, tfarina
Visibility:
Public.

Description

A working implementation of AQS (Assisted Query Stats). BUG=132667 TEST=AutocompleteProviderTest::AssistedQueryStats,AutocompleteProviderTest::UpdateAssistedQueryStats, TemplateURLTest::ReplaceAssistedQueryStats, manual testing. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143827

Patch Set 1 #

Total comments: 27

Patch Set 2 : Addressed review feedback. #

Total comments: 1

Patch Set 3 : Add missing change to google engine. #

Total comments: 12

Patch Set 4 : Introduced SearchTermsArgs, cleaned up code and addressed all comments. #

Patch Set 5 : Removed SupportsAssistedQueryStats. #

Total comments: 41

Patch Set 6 : Addressed Peter's comments. #

Patch Set 7 : Added Autocomplete unit tests. #

Total comments: 25

Patch Set 8 : Addressed comments. #

Total comments: 2

Patch Set 9 : Moved kMaxRelevance inside the function which uses it. #

Total comments: 12

Patch Set 10 : Addressed comments. #

Total comments: 2

Patch Set 11 : Fix compilation errors. #

Patch Set 12 : Addressed remaining comments. #

Patch Set 13 : Fixed Win compilation error. #

Total comments: 2

Patch Set 14 : Fixed InstantTest.OnChangeEvent failure; addressed remaining commments. #

Total comments: 2

Patch Set 15 : Added HTTPS checks, as requested by privacy folks. #

Total comments: 5

Patch Set 16 : Addressed comments. #

Total comments: 4

Patch Set 17 : Addressed comments and added more docs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -114 lines) Patch
M chrome/browser/autocomplete/autocomplete.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +80 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +179 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/keyword_provider.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +26 lines, -7 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +47 lines, -15 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/template_url_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +86 lines, -28 lines 0 comments Download
M chrome/browser/ui/search_engines/edit_search_engine_controller.cc View 1 2 3 4 5 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
msw
Some preliminary feedback. You'll ultimately need Peter's approval. https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc#newcode1105 chrome/browser/autocomplete/autocomplete.cc:1105: namespace ...
8 years, 6 months ago (2012-06-13 22:39:33 UTC) #1
Bart N
PTAL https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc#newcode1105 chrome/browser/autocomplete/autocomplete.cc:1105: namespace { On 2012/06/13 22:39:33, msw wrote: > ...
8 years, 6 months ago (2012-06-13 23:17:13 UTC) #2
msw
https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/1/chrome/browser/autocomplete/autocomplete.cc#newcode1107 chrome/browser/autocomplete/autocomplete.cc:1107: // Converts the given type to an integer based ...
8 years, 6 months ago (2012-06-13 23:42:08 UTC) #3
Peter Kasting
https://chromiumcodereview.appspot.com/10537154/diff/1006/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/1006/chrome/browser/autocomplete/autocomplete.cc#newcode59 chrome/browser/autocomplete/autocomplete.cc:59: // Converts the given type to an integer based ...
8 years, 6 months ago (2012-06-14 01:04:23 UTC) #4
Bart N
Thanks for the review, Peter. Just replied with high level comment, as I think everything ...
8 years, 6 months ago (2012-06-14 01:22:13 UTC) #5
Peter Kasting
Regarding Google-specific protos: I don't personally have a problem with copying pieces of them into ...
8 years, 6 months ago (2012-06-14 03:18:17 UTC) #6
Bart N
On Wed, Jun 13, 2012 at 8:18 PM, <pkasting@chromium.org> wrote: > Regarding Google-specific protos: I ...
8 years, 6 months ago (2012-06-14 03:51:32 UTC) #7
Peter Kasting
On 2012/06/14 03:51:32, Bart N wrote: > The one and only reason why I want ...
8 years, 6 months ago (2012-06-14 04:10:10 UTC) #8
Bart N
Hi Peter, As we discussed I added a new struct, SearchTermsArgs and simplified the API. ...
8 years, 6 months ago (2012-06-15 18:07:34 UTC) #9
Peter Kasting
The general idea here is good. You can go ahead with adding tests. I didn't ...
8 years, 6 months ago (2012-06-16 03:14:17 UTC) #10
Bart N
Thanks. Addressed your comments and I'm working on unit tests now, should have them ready ...
8 years, 6 months ago (2012-06-16 23:38:10 UTC) #11
Bart N
Added tests to autocomplete_unittest.cc. It took my substantial time to figure out why template URL ...
8 years, 6 months ago (2012-06-17 17:55:17 UTC) #12
Bart N
On 2012/06/17 17:55:17, Bart N wrote: > Added tests to autocomplete_unittest.cc. It took my substantial ...
8 years, 6 months ago (2012-06-18 18:31:22 UTC) #13
Peter Kasting
This looks like it's about ready. Have you run things through any trybots yet? Do ...
8 years, 6 months ago (2012-06-18 19:45:52 UTC) #14
Bart N
OK thanks, I'm updating the cl to incorporate your feedback. On Mon, Jun 18, 2012 ...
8 years, 6 months ago (2012-06-18 19:56:17 UTC) #15
Peter Kasting
On 2012/06/18 19:56:17, Bart N wrote: > Meanwhile, I'm getting troubles running git try: > ...
8 years, 6 months ago (2012-06-18 20:00:26 UTC) #16
Bart N
On Mon, Jun 18, 2012 at 1:00 PM, <pkasting@chromium.org> wrote: > On 2012/06/18 19:56:17, Bart ...
8 years, 6 months ago (2012-06-18 20:05:00 UTC) #17
Bart N
Thanks. PTAL https://chromiumcodereview.appspot.com/10537154/diff/19001/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/19001/chrome/browser/autocomplete/autocomplete.cc#newcode896 chrome/browser/autocomplete/autocomplete.cc:896: int query_index, On 2012/06/18 19:45:52, Peter Kasting ...
8 years, 6 months ago (2012-06-18 20:34:18 UTC) #18
Peter Kasting
I'll get the tryserver running this. http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc File chrome/browser/autocomplete/autocomplete_unittest.cc (right): http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc#newcode197 chrome/browser/autocomplete/autocomplete_unittest.cc:197: // Register a ...
8 years, 6 months ago (2012-06-18 20:49:50 UTC) #19
Bart N
Working on the last nit: TemplateURL setup. http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc File chrome/browser/autocomplete/autocomplete_unittest.cc (right): http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc#newcode508 chrome/browser/autocomplete/autocomplete_unittest.cc:508: RunAssistedQueryStatsTest(test_data, ARRAYSIZE_UNSAFE(test_data)); ...
8 years, 6 months ago (2012-06-18 21:20:52 UTC) #20
Peter Kasting
http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc File chrome/browser/autocomplete/autocomplete_unittest.cc (right): http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc#newcode508 chrome/browser/autocomplete/autocomplete_unittest.cc:508: RunAssistedQueryStatsTest(test_data, ARRAYSIZE_UNSAFE(test_data)); On 2012/06/18 21:20:52, Bart N wrote: > ...
8 years, 6 months ago (2012-06-18 21:29:21 UTC) #21
tfarina
http://codereview.chromium.org/10537154/diff/32002/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): http://codereview.chromium.org/10537154/diff/32002/chrome/browser/autocomplete/autocomplete.cc#newcode57 chrome/browser/autocomplete/autocomplete.cc:57: nit: why add this extra blank line here? http://codereview.chromium.org/10537154/diff/32002/chrome/browser/autocomplete/autocomplete.cc#newcode793 ...
8 years, 6 months ago (2012-06-18 22:01:57 UTC) #22
Bart N
Addressed all comments. PTAL http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc File chrome/browser/autocomplete/autocomplete_unittest.cc (right): http://codereview.chromium.org/10537154/diff/19001/chrome/browser/autocomplete/autocomplete_unittest.cc#newcode197 chrome/browser/autocomplete/autocomplete_unittest.cc:197: // Register a TemplateURL for ...
8 years, 6 months ago (2012-06-18 22:26:24 UTC) #23
Peter Kasting
Looks from the trybots like there are compile errors in at least startup_browser_creator_win.cc, browser_frame_win.cc, and ...
8 years, 6 months ago (2012-06-19 00:38:08 UTC) #24
Bart N
I believe I've addressed all comments. On 2012/06/19 00:38:08, Peter Kasting wrote: > Looks from ...
8 years, 6 months ago (2012-06-19 01:30:05 UTC) #25
Bart N
http://codereview.chromium.org/10537154/diff/32002/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): http://codereview.chromium.org/10537154/diff/32002/chrome/browser/autocomplete/autocomplete.cc#newcode57 chrome/browser/autocomplete/autocomplete.cc:57: On 2012/06/19 00:38:08, Peter Kasting wrote: > On 2012/06/18 ...
8 years, 6 months ago (2012-06-19 01:30:16 UTC) #26
Bart N
Fixing 1 remaining compilation issue: Win: E:\b\build\slave\win\build\src\chrome\browser\autocomplete\autocomplete_unittest.cc(522) : error C2466: cannot allocate an array of ...
8 years, 6 months ago (2012-06-19 02:24:43 UTC) #27
Bart N
Added a workaround for broken Win compiler. Not sure if it's the best solution, but ...
8 years, 6 months ago (2012-06-19 02:45:17 UTC) #28
Bart N
On 2012/06/19 02:24:43, Bart N wrote: > Fixing 1 remaining compilation issue: > > Win: ...
8 years, 6 months ago (2012-06-19 02:51:11 UTC) #29
Bart N
On 2012/06/19 02:51:11, Bart N wrote: > On 2012/06/19 02:24:43, Bart N wrote: > > ...
8 years, 6 months ago (2012-06-19 03:29:32 UTC) #30
Peter Kasting
I think the Instant failure is a real failure too. You might try building and ...
8 years, 6 months ago (2012-06-19 05:53:43 UTC) #31
Bart N
On Mon, Jun 18, 2012 at 10:53 PM, <pkasting@chromium.org> wrote: > I think the Instant ...
8 years, 6 months ago (2012-06-19 05:57:48 UTC) #32
Bart N
It took me a while to figure the failure; it turned out that it was ...
8 years, 6 months ago (2012-06-22 03:22:19 UTC) #33
Peter Kasting
LGTM on what you have so far. Ping me when you add the protocol check ...
8 years, 6 months ago (2012-06-22 19:46:13 UTC) #34
Bart N
On 2012/06/22 19:46:13, Peter Kasting wrote: > LGTM on what you have so far. Ping ...
8 years, 6 months ago (2012-06-22 20:22:58 UTC) #35
Peter Kasting
https://chromiumcodereview.appspot.com/10537154/diff/38002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/38002/chrome/browser/autocomplete/autocomplete_match.cc#newcode74 chrome/browser/autocomplete/autocomplete_match.cc:74: if (match.associated_keyword.get()) Nit: For consistency, we could probably change ...
8 years, 6 months ago (2012-06-22 21:48:31 UTC) #36
msw
https://chromiumcodereview.appspot.com/10537154/diff/62001/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/62001/chrome/browser/search_engines/template_url.cc#newcode221 chrome/browser/search_engines/template_url.cc:221: // Either search or autocomplete base URL must be ...
8 years, 6 months ago (2012-06-22 22:28:21 UTC) #37
Bart N
PTAL. Please note my question about AQS docs. https://chromiumcodereview.appspot.com/10537154/diff/38002/chrome/browser/autocomplete/autocomplete_match.cc File chrome/browser/autocomplete/autocomplete_match.cc (right): https://chromiumcodereview.appspot.com/10537154/diff/38002/chrome/browser/autocomplete/autocomplete_match.cc#newcode74 chrome/browser/autocomplete/autocomplete_match.cc:74: if ...
8 years, 6 months ago (2012-06-22 22:42:01 UTC) #38
Peter Kasting
I don't have a strong preference for where I'd put the AQS docs. Probably in ...
8 years, 6 months ago (2012-06-22 23:18:11 UTC) #39
Bart N
Peter, thanks for the long review process and putting up with me :) I hope ...
8 years, 6 months ago (2012-06-23 01:06:30 UTC) #40
Mark P
On 2012/06/23 01:06:30, Bart N wrote: > Assuming that this is looking good now, what ...
8 years, 6 months ago (2012-06-23 15:40:42 UTC) #41
Bart N
On Sat, Jun 23, 2012 at 8:40 AM, <mpearson@chromium.org> wrote: > On 2012/06/23 01:06:30, Bart ...
8 years, 6 months ago (2012-06-23 18:55:41 UTC) #42
Peter Kasting
Once you have an LGTM, you're generally free to commit as soon as you've addressed ...
8 years, 6 months ago (2012-06-24 05:06:27 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartn@google.com/10537154/70001
8 years, 6 months ago (2012-06-24 05:06:33 UTC) #44
commit-bot: I haz the power
8 years, 6 months ago (2012-06-24 07:53:07 UTC) #45
Change committed as 143827

Powered by Google App Engine
This is Rietveld 408576698