Index: chrome/browser/autocomplete/search_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc |
index 067a3c1c56d7691f52f8d5071cb310767a623fa9..a34a3a48c9aa5d0404d41df1d82a604a5e071e34 100644 |
--- a/chrome/browser/autocomplete/search_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc |
@@ -441,9 +441,8 @@ void SearchProviderTest::QueryForInputAndWaitForFetcherResponses( |
GURL SearchProviderTest::AddSearchToHistory(TemplateURL* t_url, |
base::string16 term, |
int visit_count) { |
- HistoryService* history = |
- HistoryServiceFactory::GetForProfile(&profile_, |
- Profile::EXPLICIT_ACCESS); |
+ HistoryService* history = HistoryServiceFactory::GetForProfile( |
+ &profile_, ServiceAccessType::EXPLICIT_ACCESS); |
GURL search(t_url->url_ref().ReplaceSearchTerms( |
TemplateURLRef::SearchTermsArgs(term), |
TemplateURLServiceFactory::GetForProfile( |
@@ -739,9 +738,11 @@ TEST_F(SearchProviderTest, DontAutocompleteURLLikeTerms) { |
ASCIIToUTF16("docs.google.com"), 1); |
// Add the term as a url. |
- HistoryServiceFactory::GetForProfile(&profile_, Profile::EXPLICIT_ACCESS)-> |
- AddPageWithDetails(GURL("http://docs.google.com"), base::string16(), 1, 1, |
- base::Time::Now(), false, history::SOURCE_BROWSED); |
+ HistoryServiceFactory::GetForProfile(&profile_, |
+ ServiceAccessType::EXPLICIT_ACCESS) |
+ ->AddPageWithDetails(GURL("http://docs.google.com"), base::string16(), 1, |
+ 1, base::Time::Now(), false, |
+ history::SOURCE_BROWSED); |
profile_.BlockUntilHistoryProcessesPendingRequests(); |
AutocompleteMatch wyt_match; |