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

Issue 9289034: Fix keyword recognition. (Closed)

Created:
8 years, 11 months ago by mrossetti
Modified:
8 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Fix keyword recognition. The InMemoryURLIndex was not properly recognizing that a search string with a trailing space was not inline-able. The test for determingin inline-ability has been made more robust. BUG=110428 TEST=Type 'http' and then <space>. If this doesn't offer a [Search Google] then things are working properly. Also enhanced the InMemoryURLIndexTest.Retrieval unit test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119338

Patch Set 1 #

Patch Set 2 : Change IMUI to handle trailing space as a multi-term query. #

Total comments: 4

Patch Set 3 : Now handles multiple occurrences of search term in URL. Added test. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 5 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 2 1 chunk +12 lines, -5 lines 4 comments Download
M chrome/test/data/History/url_history_provider_test.db.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mrossetti
8 years, 11 months ago (2012-01-26 00:46:56 UTC) #1
mrossetti
Peter, I'm hoping you can recommend several additional manual tests to prove that this is ...
8 years, 11 months ago (2012-01-26 00:47:39 UTC) #2
Peter Kasting
I'm confused. I've tried stepping through this on my own profile (where the problem doesn't ...
8 years, 11 months ago (2012-01-26 01:59:22 UTC) #3
mrossetti
On 2012/01/26 01:59:22, Peter Kasting wrote: > Are you saying that the HQP is returning ...
8 years, 11 months ago (2012-01-26 16:19:23 UTC) #4
Peter Kasting
I don't know your code well enough to tell you otherwise, but the "two terms" ...
8 years, 11 months ago (2012-01-26 18:56:33 UTC) #5
mrossetti
Yes, I agree that the HQP inline test was missing a check that would catch ...
8 years, 11 months ago (2012-01-26 20:40:08 UTC) #6
mrossetti
Please take a look at this chance. It's more appropriate.
8 years, 11 months ago (2012-01-26 21:30:28 UTC) #7
mrossetti
On 2012/01/26 21:30:28, mrossetti wrote: > Please take a look at this chance. It's more ...
8 years, 11 months ago (2012-01-26 21:31:04 UTC) #8
Peter Kasting
https://chromiumcodereview.appspot.com/9289034/diff/2004/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc (right): https://chromiumcodereview.appspot.com/9289034/diff/2004/chrome/browser/history/url_index_private_data.cc#newcode534 chrome/browser/history/url_index_private_data.cc:534: // 2) there is one match within the URL, ...
8 years, 11 months ago (2012-01-26 22:19:25 UTC) #9
mrossetti
Searching for 'foo' will now find, inline, and highlight properly in 'foofoofoo.com'. https://chromiumcodereview.appspot.com/9289034/diff/2004/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc ...
8 years, 11 months ago (2012-01-26 22:58:55 UTC) #10
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/9289034/diff/6003/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc (right): https://chromiumcodereview.appspot.com/9289034/diff/6003/chrome/browser/history/url_index_private_data.cc#newcode538 chrome/browser/history/url_index_private_data.cc:538: // 4) AND the search string does not ...
8 years, 11 months ago (2012-01-26 23:04:30 UTC) #11
mrossetti
8 years, 11 months ago (2012-01-26 23:09:36 UTC) #12
Thanks for the review. Will commit once bots are happy.

https://chromiumcodereview.appspot.com/9289034/diff/6003/chrome/browser/histo...
File chrome/browser/history/url_index_private_data.cc (right):

https://chromiumcodereview.appspot.com/9289034/diff/6003/chrome/browser/histo...
chrome/browser/history/url_index_private_data.cc:538: //  4) AND the search
string does not end in whitespace (making it look to
On 2012/01/26 23:04:30, Peter Kasting wrote:
> Nit: 4 -> 3

Done.

https://chromiumcodereview.appspot.com/9289034/diff/6003/chrome/browser/histo...
chrome/browser/history/url_index_private_data.cc:541: match.can_inline =
match.url_matches.size() > 0 &&
On 2012/01/26 23:04:30, Peter Kasting wrote:
> Nit: !empty()

Done.

Powered by Google App Engine
This is Rietveld 408576698