Index: chrome/browser/omnibox/omnibox_field_trial.h |
diff --git a/chrome/browser/omnibox/omnibox_field_trial.h b/chrome/browser/omnibox/omnibox_field_trial.h |
index df79dd50fa98f4cbdd864f22586059156aa6df36..7f1f5ace45e54a9dc6db15d8c919af619f64e7f6 100644 |
--- a/chrome/browser/omnibox/omnibox_field_trial.h |
+++ b/chrome/browser/omnibox/omnibox_field_trial.h |
@@ -11,8 +11,8 @@ |
#include "base/basictypes.h" |
#include "base/gtest_prod_util.h" |
-#include "chrome/browser/autocomplete/autocomplete_input.h" |
#include "chrome/common/autocomplete_match_type.h" |
+#include "components/metrics/proto/omnibox_event.pb.h" |
namespace base { |
class TimeDelta; |
@@ -190,7 +190,8 @@ class OmniboxFieldTrial { |
// for non-inlineable results. Shortcuts results are not allowed to be |
// inlined.) |
static bool ShortcutsScoringMaxRelevance( |
- AutocompleteInput::PageClassification current_page_classification, |
+ metrics::OmniboxEventProto::PageClassification |
+ current_page_classification, |
int* max_relevance); |
// --------------------------------------------------------- |
@@ -201,13 +202,15 @@ class OmniboxFieldTrial { |
// provided |current_page_classification| context, scores search history |
// query suggestions less aggressively so that they don't inline. |
static bool SearchHistoryPreventInlining( |
- AutocompleteInput::PageClassification current_page_classification); |
+ metrics::OmniboxEventProto::PageClassification |
+ current_page_classification); |
// Returns true if the user is in the experiment group that, given the |
// provided |current_page_classification| context, disables all query |
// suggestions from search history. |
static bool SearchHistoryDisable( |
- AutocompleteInput::PageClassification current_page_classification); |
+ metrics::OmniboxEventProto::PageClassification |
+ current_page_classification); |
// --------------------------------------------------------- |
// For the DemoteByType experiment that's part of the bundled omnibox field |
@@ -219,7 +222,8 @@ class OmniboxFieldTrial { |
// appropriately. Otherwise, sets |demotions_by_type| to its default |
// value based on the context. |
static void GetDemotionsByType( |
- AutocompleteInput::PageClassification current_page_classification, |
+ metrics::OmniboxEventProto::PageClassification |
+ current_page_classification, |
DemotionMultipliers* demotions_by_type); |
// --------------------------------------------------------- |
@@ -326,7 +330,7 @@ class OmniboxFieldTrial { |
// interpret the value is left to the caller; this is rule-dependent. |
static std::string GetValueForRuleInContext( |
const std::string& rule, |
- AutocompleteInput::PageClassification page_classification); |
+ metrics::OmniboxEventProto::PageClassification page_classification); |
DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); |
}; |