X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fomnibox%2Fomnibox_field_trial.cc;h=26a32c07aa927140c1abee07d87473db89f8aef3;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=445d793be5806b559fb09ba90707e8a84e0602d6;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/omnibox/omnibox_field_trial.cc b/src/chrome/browser/omnibox/omnibox_field_trial.cc index 445d793..26a32c0 100644 --- a/src/chrome/browser/omnibox/omnibox_field_trial.cc +++ b/src/chrome/browser/omnibox/omnibox_field_trial.cc @@ -270,17 +270,25 @@ bool OmniboxFieldTrial::HasDynamicFieldTrialGroupPrefix( } bool OmniboxFieldTrial::InZeroSuggestFieldTrial() { - return HasDynamicFieldTrialGroupPrefix(kEnableZeroSuggestGroupPrefix); + return HasDynamicFieldTrialGroupPrefix(kEnableZeroSuggestGroupPrefix) || + chrome_variations::GetVariationParamValue( + kBundledExperimentFieldTrialName, kZeroSuggestRule) == "true"; } bool OmniboxFieldTrial::InZeroSuggestMostVisitedFieldTrial() { return HasDynamicFieldTrialGroupPrefix( - kEnableZeroSuggestMostVisitedGroupPrefix); + kEnableZeroSuggestMostVisitedGroupPrefix) || + chrome_variations::GetVariationParamValue( + kBundledExperimentFieldTrialName, + kZeroSuggestVariantRule) == "MostVisited"; } bool OmniboxFieldTrial::InZeroSuggestAfterTypingFieldTrial() { return HasDynamicFieldTrialGroupPrefix( - kEnableZeroSuggestAfterTypingGroupPrefix); + kEnableZeroSuggestAfterTypingGroupPrefix) || + chrome_variations::GetVariationParamValue( + kBundledExperimentFieldTrialName, + kZeroSuggestVariantRule) == "AfterTyping"; } bool OmniboxFieldTrial::ShortcutsScoringMaxRelevance( @@ -368,8 +376,8 @@ OmniboxFieldTrial::GetUndemotableTopTypes( bool OmniboxFieldTrial::ReorderForLegalDefaultMatch( AutocompleteInput::PageClassification current_page_classification) { return OmniboxFieldTrial::GetValueForRuleInContext( - kReorderForLegalDefaultMatchRule, current_page_classification) == - kReorderForLegalDefaultMatchRuleEnabled; + kReorderForLegalDefaultMatchRule, current_page_classification) != + kReorderForLegalDefaultMatchRuleDisabled; } void OmniboxFieldTrial::GetExperimentalHUPScoringParams( @@ -446,8 +454,10 @@ const char OmniboxFieldTrial::kHQPDiscountFrecencyWhenFewVisitsRule[] = const char OmniboxFieldTrial::kHQPAllowMatchInTLDRule[] = "HQPAllowMatchInTLD"; const char OmniboxFieldTrial::kHQPAllowMatchInSchemeRule[] = "HQPAllowMatchInScheme"; -const char OmniboxFieldTrial::kReorderForLegalDefaultMatchRuleEnabled[] = - "ReorderForLegalDefaultMatch"; +const char OmniboxFieldTrial::kZeroSuggestRule[] = "ZeroSuggest"; +const char OmniboxFieldTrial::kZeroSuggestVariantRule[] = "ZeroSuggestVariant"; +const char OmniboxFieldTrial::kReorderForLegalDefaultMatchRuleDisabled[] = + "DontReorderForLegalDefaultMatch"; const char OmniboxFieldTrial::kHUPNewScoringEnabledParam[] = "HUPExperimentalScoringEnabled";