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

Issue 10909046: Boost HQP Scores for Bookmarks (Closed)

Created:
8 years, 3 months ago by mrossetti
Modified:
8 years, 3 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, browser-components-watch_chromium.org
Visibility:
Public.

Description

Boost HQP Scores for Bookmarks During the final scoring process, in the ScoredHistoryMatch ctor, determine how many bookmarks reference a match's URL and boost the score if any. BUG=109533 TEST=New unit tests added. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155106

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Minor edits. #

Total comments: 4

Patch Set 4 : Simplification. #

Total comments: 8

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -21 lines) Patch
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/history/scored_history_match.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/history/scored_history_match.cc View 1 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/history/scored_history_match_unittest.cc View 1 2 3 4 2 chunks +61 lines, -9 lines 0 comments Download
M chrome/browser/history/url_index_private_data.h View 1 2 3 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/history/url_index_private_data.cc View 1 2 3 6 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mrossetti
Mark, would you like to propose an initial score adjustment based on the bookmark_count as ...
8 years, 3 months ago (2012-09-01 02:30:21 UTC) #1
Mark P
On 2012/09/01 02:30:21, mrossetti wrote: > Mark, would you like to propose an initial score ...
8 years, 3 months ago (2012-09-04 17:07:40 UTC) #2
mrossetti
This gives a boost to an HQP result if the result's URL is also referenced ...
8 years, 3 months ago (2012-09-05 01:45:17 UTC) #3
mrossetti
Okay, this is now ready for review.
8 years, 3 months ago (2012-09-05 18:28:55 UTC) #4
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc (right): https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/url_index_private_data.cc#newcode24 chrome/browser/history/url_index_private_data.cc:24: // TODO(mrossetti): Remove these two includes one BookmarkService ...
8 years, 3 months ago (2012-09-05 19:06:30 UTC) #5
mrossetti
- mpearson, pkasting + sky I need an owner's LG please Scott. https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/url_index_private_data.cc File chrome/browser/history/url_index_private_data.cc ...
8 years, 3 months ago (2012-09-05 20:15:43 UTC) #6
sky
https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/in_memory_url_index.cc#newcode61 chrome/browser/history/in_memory_url_index.cc:61: Profile* profile, Are you using this on the db ...
8 years, 3 months ago (2012-09-05 20:57:49 UTC) #7
mrossetti
Perfect comment Scott! Made me realize there was a vastly simpler approach. Thanks! https://chromiumcodereview.appspot.com/10909046/diff/4002/chrome/browser/history/in_memory_url_index.cc File ...
8 years, 3 months ago (2012-09-05 22:35:40 UTC) #8
Peter Kasting
https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/history/in_memory_url_index.cc File chrome/browser/history/in_memory_url_index.cc (right): https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/history/in_memory_url_index.cc#newcode168 chrome/browser/history/in_memory_url_index.cc:168: BookmarkModelFactory::GetForProfile(profile_); Nit: Or inline into next statement
8 years, 3 months ago (2012-09-05 22:50:06 UTC) #9
sky
LGTM https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/history/scored_history_match_unittest.cc File chrome/browser/history/scored_history_match_unittest.cc (right): https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/history/scored_history_match_unittest.cc#newcode131 chrome/browser/history/scored_history_match_unittest.cc:131: ~BookmarkServiceMock() {} virtual https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/history/scored_history_match_unittest.cc#newcode134 chrome/browser/history/scored_history_match_unittest.cc:134: bool IsBookmarked(const GURL& ...
8 years, 3 months ago (2012-09-05 23:00:18 UTC) #10
mrossetti
8 years, 3 months ago (2012-09-06 00:33:44 UTC) #11
Thanks for the reviews!

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
File chrome/browser/history/in_memory_url_index.cc (right):

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
chrome/browser/history/in_memory_url_index.cc:168:
BookmarkModelFactory::GetForProfile(profile_);
On 2012/09/05 22:50:06, Peter Kasting wrote:
> Nit: Or inline into next statement

Done.

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
File chrome/browser/history/scored_history_match_unittest.cc (right):

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
chrome/browser/history/scored_history_match_unittest.cc:131:
~BookmarkServiceMock() {}
On 2012/09/05 23:00:18, sky wrote:
> virtual

Done.

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
chrome/browser/history/scored_history_match_unittest.cc:134: bool
IsBookmarked(const GURL& url);
On 2012/09/05 23:00:18, sky wrote:
> virtual and OVERRIDE on these.

Done.

https://chromiumcodereview.appspot.com/10909046/diff/9003/chrome/browser/hist...
chrome/browser/history/scored_history_match_unittest.cc:142: };
On 2012/09/05 23:00:18, sky wrote:
> DISALLOW_...

Done.

Powered by Google App Engine
This is Rietveld 408576698