diff options
Diffstat (limited to 'chrome/browser/omnibox/omnibox_field_trial.cc')
-rw-r--r-- | chrome/browser/omnibox/omnibox_field_trial.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/chrome/browser/omnibox/omnibox_field_trial.cc b/chrome/browser/omnibox/omnibox_field_trial.cc index f686a21..858e4f8 100644 --- a/chrome/browser/omnibox/omnibox_field_trial.cc +++ b/chrome/browser/omnibox/omnibox_field_trial.cc @@ -366,32 +366,6 @@ void OmniboxFieldTrial::GetDemotionsByType( } } -OmniboxFieldTrial::UndemotableTopMatchTypes -OmniboxFieldTrial::GetUndemotableTopTypes( - AutocompleteInput::PageClassification current_page_classification) { - UndemotableTopMatchTypes undemotable_types; - const std::string types_rule = - OmniboxFieldTrial::GetValueForRuleInContext( - kUndemotableTopTypeRule, - current_page_classification); - // The value of the UndemotableTopTypes rule is a comma-separated list of - // AutocompleteMatchType::Type enums represented as an integer. The - // DemoteByType rule does not apply to the top match if the type of the top - // match is in this list. - std::vector<std::string> types; - base::SplitString(types_rule, ',', &types); - for (std::vector<std::string>::const_iterator it = types.begin(); - it != types.end(); ++it) { - // This is a best-effort conversion; we trust the hand-crafted parameters - // downloaded from the server to be perfect. There's no need to handle - // errors smartly. - int t; - base::StringToInt(*it, &t); - undemotable_types.insert(static_cast<AutocompleteMatchType::Type>(t)); - } - return undemotable_types; -} - void OmniboxFieldTrial::GetExperimentalHUPScoringParams( HUPScoringParams* scoring_params) { scoring_params->experimental_scoring_enabled = false; @@ -450,7 +424,6 @@ const char OmniboxFieldTrial::kShortcutsScoringMaxRelevanceRule[] = "ShortcutsScoringMaxRelevance"; const char OmniboxFieldTrial::kSearchHistoryRule[] = "SearchHistory"; const char OmniboxFieldTrial::kDemoteByTypeRule[] = "DemoteByType"; -const char OmniboxFieldTrial::kUndemotableTopTypeRule[] = "UndemotableTopTypes"; const char OmniboxFieldTrial::kHQPBookmarkValueRule[] = "HQPBookmarkValue"; const char OmniboxFieldTrial::kHQPAllowMatchInTLDRule[] = "HQPAllowMatchInTLD"; |