Index: chrome/browser/autocomplete/base_search_provider.cc |
diff --git a/chrome/browser/autocomplete/base_search_provider.cc b/chrome/browser/autocomplete/base_search_provider.cc |
index 5e55e9ce2840fddfb20274a26fae7e6846188458..858981af2c42c73b80652d0029b0a1c5732b59a4 100644 |
--- a/chrome/browser/autocomplete/base_search_provider.cc |
+++ b/chrome/browser/autocomplete/base_search_provider.cc |
@@ -41,6 +41,8 @@ |
#include "net/url_request/url_fetcher_delegate.h" |
#include "url/gurl.h" |
+using metrics::OmniboxEventProto; |
+ |
namespace { |
AutocompleteMatchType::Type GetAutocompleteMatchType(const std::string& type) { |
@@ -585,7 +587,7 @@ scoped_ptr<base::Value> BaseSearchProvider::DeserializeJsonData( |
bool BaseSearchProvider::ZeroSuggestEnabled( |
const GURL& suggest_url, |
const TemplateURL* template_url, |
- AutocompleteInput::PageClassification page_classification, |
+ OmniboxEventProto::PageClassification page_classification, |
Profile* profile) { |
if (!OmniboxFieldTrial::InZeroSuggestFieldTrial()) |
return false; |
@@ -599,9 +601,9 @@ bool BaseSearchProvider::ZeroSuggestEnabled( |
// TODO(hfung): Experiment with showing MostVisited zero suggest on NTP |
// under the conditions described in crbug.com/305366. |
if ((page_classification == |
- AutocompleteInput::INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS) || |
+ OmniboxEventProto::INSTANT_NTP_WITH_FAKEBOX_AS_STARTING_FOCUS) || |
(page_classification == |
- AutocompleteInput::INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS)) |
+ OmniboxEventProto::INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS)) |
return false; |
// Don't run if there's no profile or in incognito mode. |
@@ -630,7 +632,7 @@ bool BaseSearchProvider::CanSendURL( |
const GURL& current_page_url, |
const GURL& suggest_url, |
const TemplateURL* template_url, |
- AutocompleteInput::PageClassification page_classification, |
+ OmniboxEventProto::PageClassification page_classification, |
Profile* profile) { |
if (!ZeroSuggestEnabled(suggest_url, template_url, page_classification, |
profile)) |