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

Issue 2187343002: Generating autocomplete results with and without word breaks in the Omnibox. (Closed)

Created:
4 years, 4 months ago by Lavar Askew
Modified:
4 years, 3 months ago
Reviewers:
Mark P
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generating autocomplete results with and without word breaks in the Omnibox. The goal is to support mid-word autocomplete in the Omnibox. Currently, if the user types "funtimes", inserts the cursor between the "n" and the "t" and begins typing the word "good" the Ominbox will search for URL results that match "fungood times" only. We want to also search for "fungoodtimes". BUG=591979 TEST=0. Clear browser history. 1. Visit the following link: https://twitter.com/fungoodtimes 2. Open a new browser tab. 3.Type into the Omnibox "funtimes". Note the lack of the suggestion for the above URL. 4. Insert the cursor between the "n" and "t" in "funtime" and type "good". 5. The above URL should show in the autocomplete list. Committed: https://crrev.com/e3235816f23e9eb733d11bdecdfd5f8ca67cec9f Cr-Commit-Position: refs/heads/master@{#418054}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Code review fixes for patch entitled "Generating autocomplete results with and without word breaks … #

Total comments: 20

Patch Set 3 : I tried to remove duplicates and improve effciency. I appreciated the comments. #

Total comments: 17

Patch Set 4 : corrected formatting and improved comments. Also added unit test MatchWithAndWithoutCursorWordBreak #

Total comments: 20

Patch Set 5 : Unit test added. Grammatical errors corrected. #

Total comments: 8

Patch Set 6 : Added the fungoodtimes twitter URL to the end of the list. Placed ExtractIndividualWordVector, Get… #

Total comments: 4

Patch Set 7 : Removed large comment. Added the 'a' back in. #

Patch Set 8 : Test seems to work now. I just checked out the most recent commit of history_quick_provider_unitte… #

Patch Set 9 : Correct code causing tests in HistoryQuickProviderTest to fail. #

Total comments: 11

Patch Set 10 : Made changes to bring code inline with best practices. #

Patch Set 11 : Put common code for handling multiple search strings inside for loop. This removes the copy paste … #

Patch Set 12 : Removed new line after defining lower_words. #

Total comments: 17

Patch Set 13 : Made recommended changes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -157 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M components/omnibox/browser/history_quick_provider_unittest.cc View 1 2 3 4 5 2 chunks +57 lines, -46 lines 0 comments Download
M components/omnibox/browser/url_index_private_data.h View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -13 lines 0 comments Download
M components/omnibox/browser/url_index_private_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +92 lines, -98 lines 1 comment Download

Messages

Total messages: 62 (24 generated)
Lavar Askew
Hi, can you please review my code for issue 591979? I've added the ability to ...
4 years, 4 months ago (2016-07-28 18:35:01 UTC) #6
Peter Kasting
Thanks for contributing this CL. You'll want to change the CL title, and the first ...
4 years, 4 months ago (2016-07-28 20:32:20 UTC) #10
Mark P
Hi, Thanks for putting together a patch. I have a question about how it's supposed ...
4 years, 4 months ago (2016-08-04 18:02:39 UTC) #14
Lavar Askew
Hi Mark, Thanks for reviewing my patch. In regards to your first comment you are ...
4 years, 4 months ago (2016-08-04 18:49:59 UTC) #15
Mark P
On Thu, Aug 4, 2016 at 11:49 AM, <open.hyperion@gmail.com> wrote: > Hi Mark, > > ...
4 years, 4 months ago (2016-08-04 19:50:58 UTC) #16
Lavar Askew
On 2016/08/04 19:50:58, Mark P wrote: > On Thu, Aug 4, 2016 at 11:49 AM, ...
4 years, 4 months ago (2016-08-06 02:22:52 UTC) #17
Lavar Askew
Hi Mark, would you mind reviewing my code? Thanks, Lavar https://codereview.chromium.org/2187343002/diff/1/components/omnibox/browser/url_index_private_data.cc File components/omnibox/browser/url_index_private_data.cc (right): https://codereview.chromium.org/2187343002/diff/1/components/omnibox/browser/url_index_private_data.cc#newcode168 ...
4 years, 4 months ago (2016-08-10 15:24:03 UTC) #20
Mark P
Sorry for the delay in reviewing. Generally the approach seems fine, though you've at times ...
4 years, 4 months ago (2016-08-10 17:46:20 UTC) #22
Lavar Askew
Hi Mark, I believed I have made the changes you recommended. Would you mind reviewing ...
4 years, 4 months ago (2016-08-18 03:07:52 UTC) #23
Mark P
This is generally very nice. I see you've gotten chromium style down pretty well. :-) ...
4 years, 4 months ago (2016-08-18 19:36:53 UTC) #24
Lavar Askew
Hi Mark, I made the formatting changes you asked for, improved the comments, and added ...
4 years, 4 months ago (2016-08-19 04:46:07 UTC) #25
Mark P
Again, no big comments here, mostly things I observed where your header file comment doesn't ...
4 years, 4 months ago (2016-08-22 18:24:12 UTC) #26
Lavar Askew
Hi Mark, I've added the test and made the minor updates that you've mentioned. Can ...
4 years, 3 months ago (2016-08-23 20:38:20 UTC) #27
Mark P
On 2016/08/23 20:38:20, Lavar Askew wrote: > Hi Mark, > > I've added the test ...
4 years, 3 months ago (2016-08-23 21:49:35 UTC) #28
Lavar Askew
Patchset uploaded.
4 years, 3 months ago (2016-08-23 22:01:00 UTC) #29
Mark P
Almost done! Congrats. Just a few comments below. I recommend you run "git cl try" ...
4 years, 3 months ago (2016-08-23 22:14:47 UTC) #30
Lavar Askew
Hi Mark, all ready for your discerning eye. Thanks for your help. -Lavar https://codereview.chromium.org/2187343002/diff/80001/components/omnibox/browser/history_quick_provider_unittest.cc File ...
4 years, 3 months ago (2016-08-24 19:53:14 UTC) #31
Mark P
lgtm looks good to me. Please make the two fixes I suggest in the comments ...
4 years, 3 months ago (2016-08-24 20:15:03 UTC) #32
Lavar Askew
Done...and the commit box has been clicked! https://codereview.chromium.org/2187343002/diff/100001/components/omnibox/browser/url_index_private_data.cc File components/omnibox/browser/url_index_private_data.cc (right): https://codereview.chromium.org/2187343002/diff/100001/components/omnibox/browser/url_index_private_data.cc#newcode157 components/omnibox/browser/url_index_private_data.cc:157: /* On ...
4 years, 3 months ago (2016-08-24 20:23:50 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2187343002/120001
4 years, 3 months ago (2016-08-24 20:23:59 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/57860)
4 years, 3 months ago (2016-08-24 20:46:33 UTC) #40
Mark P
Looks like there are some other test cases that now have different answers and need ...
4 years, 3 months ago (2016-08-24 20:49:44 UTC) #41
Lavar Askew
On 2016/08/24 20:49:44, Mark P wrote: > Looks like there are some other test cases ...
4 years, 3 months ago (2016-08-24 20:54:17 UTC) #42
Mark P
On 2016/08/24 20:54:17, Lavar Askew wrote: > On 2016/08/24 20:49:44, Mark P wrote: > > ...
4 years, 3 months ago (2016-08-24 21:00:32 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2187343002/160001
4 years, 3 months ago (2016-09-12 20:52:19 UTC) #46
Lavar Askew
Hi Mark, I fixed the errors that were causing the tests in HistoryQuickProviderTest to fail. ...
4 years, 3 months ago (2016-09-12 20:54:24 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-12 21:41:13 UTC) #49
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/e3235816f23e9eb733d11bdecdfd5f8ca67cec9f Cr-Commit-Position: refs/heads/master@{#418054}
4 years, 3 months ago (2016-09-12 21:43:38 UTC) #51
Mark P
On Mon, Sep 12, 2016 at 1:54 PM, <open.hyperion@gmail.com> wrote: > Hi Mark, > > ...
4 years, 3 months ago (2016-09-12 23:48:18 UTC) #52
Mark P
I started looking at the changelist to see what happened between the reviewed version of ...
4 years, 3 months ago (2016-09-13 03:58:19 UTC) #53
Lavar Askew
https://codereview.chromium.org/2187343002/diff/160001/components/omnibox/browser/url_index_private_data.cc File components/omnibox/browser/url_index_private_data.cc (left): https://codereview.chromium.org/2187343002/diff/160001/components/omnibox/browser/url_index_private_data.cc#oldcode84 components/omnibox/browser/url_index_private_data.cc:84: On 2016/09/13 03:58:19, Mark P wrote: > style comment: ...
4 years, 3 months ago (2016-09-13 18:14:30 UTC) #54
Lavar Askew
Instead of making new methods I put the common code for the search strings into ...
4 years, 3 months ago (2016-09-14 23:11:40 UTC) #55
Lavar Askew
Hi Mark, were you able to see the latest changes where I've consolidated things down ...
4 years, 3 months ago (2016-09-15 19:20:32 UTC) #56
Mark P
This generally looks nice, maybe nicer than any previous version. And, yes, I chuckled at ...
4 years, 3 months ago (2016-09-15 22:55:54 UTC) #57
Peter Kasting
On 2016/09/15 22:55:54, Mark P wrote: > And, yes, I chuckled at the Space Ghost ...
4 years, 3 months ago (2016-09-15 23:02:18 UTC) #58
Lavar Askew
Recommended changes made. https://codereview.chromium.org/2187343002/diff/220001/components/omnibox/browser/url_index_private_data.cc File components/omnibox/browser/url_index_private_data.cc (left): https://codereview.chromium.org/2187343002/diff/220001/components/omnibox/browser/url_index_private_data.cc#oldcode188 components/omnibox/browser/url_index_private_data.cc:188: // Do nothing if we have ...
4 years, 3 months ago (2016-09-16 00:37:51 UTC) #59
Mark P
looks good to me once you make the change below You will have to upload ...
4 years, 3 months ago (2016-09-16 23:18:07 UTC) #60
Mark P
4 years, 2 months ago (2016-09-22 17:19:14 UTC) #62
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/2364523003/ by mpearson@chromium.org.

The reason for reverting is: Reverting.  Will be replaced by cleaner
implementation:
https://codereview.chromium.org/2363463002/

--mark.

Powered by Google App Engine
This is Rietveld 408576698