Commit 98f4af27 authored by mpearson@chromium.org's avatar mpearson@chromium.org

Omnibox: Demote Bookmarks on NTP Fakebox

This is how there were supposed to be before someone accidentally
renumbered the match types.

BUG=390597

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282381 0039d316-1c4b-4281-b951-d872f2087c98
parent 6efee8e0
......@@ -325,7 +325,7 @@ void OmniboxFieldTrial::GetDemotionsByType(
if (demotion_rule.empty() &&
(current_page_classification ==
OmniboxEventProto::INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS))
demotion_rule = "1:61,2:61,3:61,4:61,12:61";
demotion_rule = "1:61,2:61,3:61,4:61,16:61";
// The value of the DemoteByType rule is a comma-separated list of
// {ResultType + ":" + Number} where ResultType is an AutocompleteMatchType::
......
......@@ -11,7 +11,8 @@ struct AutocompleteMatchType {
// Type of AutocompleteMatch. Typedef'ed in autocomplete_match.h. Defined here
// to pass the type details back and forth between the browser and renderer.
//
// These values are stored in ShortcutsDatabase and cannot be renumbered.
// These values are stored in ShortcutsDatabase and in GetDemotionsByType()
// and cannot be renumbered.
enum Type {
URL_WHAT_YOU_TYPED = 0, // The input as a URL.
HISTORY_URL = 1, // A past page whose URL contains the input.
......
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