Commit de42c005 authored by mpearson@chromium.org's avatar mpearson@chromium.org

Omnibox: HistoryQuick Provider Scoring: Boost Bookmarks

Give untyped bookmarked URLs a boost.
(Change the default value of an untyped visit to a bookmark from 1 to 10.  A typed visit still scores 20.)

This has evaluated positively.

BUG=330214,247715

Review URL: https://codereview.chromium.org/307003002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273778 0039d316-1c4b-4281-b951-d872f2087c98
parent e231d231
...@@ -398,7 +398,7 @@ int OmniboxFieldTrial::HQPBookmarkValue() { ...@@ -398,7 +398,7 @@ int OmniboxFieldTrial::HQPBookmarkValue() {
GetVariationParamValue(kBundledExperimentFieldTrialName, GetVariationParamValue(kBundledExperimentFieldTrialName,
kHQPBookmarkValueRule); kHQPBookmarkValueRule);
if (bookmark_value_str.empty()) if (bookmark_value_str.empty())
return 1; return 10;
// This is a best-effort conversion; we trust the hand-crafted parameters // This is a best-effort conversion; we trust the hand-crafted parameters
// downloaded from the server to be perfect. There's no need for handle // downloaded from the server to be perfect. There's no need for handle
// errors smartly. // errors smartly.
......
...@@ -237,7 +237,7 @@ class OmniboxFieldTrial { ...@@ -237,7 +237,7 @@ class OmniboxFieldTrial {
// Returns the value an untyped visit to a bookmark should receive. // Returns the value an untyped visit to a bookmark should receive.
// Compare this value with the default of 1 for non-bookmarked untyped // Compare this value with the default of 1 for non-bookmarked untyped
// visits to pages and the default of 20 for typed visits. Returns // visits to pages and the default of 20 for typed visits. Returns
// 1 if the bookmark value experiment isn't active. // 10 if the bookmark value experiment isn't active.
static int HQPBookmarkValue(); static int HQPBookmarkValue();
// --------------------------------------------------------- // ---------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment