Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Unified Diff: chrome/browser/autocomplete/zero_suggest_provider.cc

Issue 372843005: Remove Profile from BaseSearchProvider::NavigationResult (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/zero_suggest_provider.cc
diff --git a/chrome/browser/autocomplete/zero_suggest_provider.cc b/chrome/browser/autocomplete/zero_suggest_provider.cc
index e8d08c328d63081c5bf695dc7fc9b47d158cd69e..87e8ed4ca7ad126aa6e6a918b4621320c5206c09 100644
--- a/chrome/browser/autocomplete/zero_suggest_provider.cc
+++ b/chrome/browser/autocomplete/zero_suggest_provider.cc
@@ -376,10 +376,10 @@ void ZeroSuggestProvider::ConvertResultsToAutocompleteMatches() {
profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
for (size_t i = 0; i < most_visited_urls_.size(); i++) {
const history::MostVisitedURL& url = most_visited_urls_[i];
- NavigationResult nav(*this, profile_, url.url,
- AutocompleteMatchType::NAVSUGGEST, url.title,
- std::string(), false, relevance, true,
- current_query_string16, languages);
+ NavigationResult nav(
+ ChromeAutocompleteSchemeClassifier(profile_), url.url,
+ AutocompleteMatchType::NAVSUGGEST, url.title, std::string(), false,
+ relevance, true, current_query_string16, languages);
matches_.push_back(NavigationToMatch(nav));
--relevance;
}
« no previous file with comments | « chrome/browser/autocomplete/search_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698