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

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

Issue 1002263006: Set a zero suggest impression for most visited. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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 ddd8a76feba85222fa1b1174e60642881b53b909..ed00030cbe472221162a01d113fa17c295248111 100644
--- a/chrome/browser/autocomplete/zero_suggest_provider.cc
+++ b/chrome/browser/autocomplete/zero_suggest_provider.cc
@@ -162,6 +162,7 @@ void ZeroSuggestProvider::Stop(bool clear_cached_results,
results_.suggest_results.clear();
results_.navigation_results.clear();
current_query_.clear();
+ most_visited_urls_.clear();
}
}
@@ -177,7 +178,9 @@ void ZeroSuggestProvider::DeleteMatch(const AutocompleteMatch& match) {
void ZeroSuggestProvider::AddProviderInfo(ProvidersInfo* provider_info) const {
BaseSearchProvider::AddProviderInfo(provider_info);
- if (!results_.suggest_results.empty() || !results_.navigation_results.empty())
+ if (!results_.suggest_results.empty() ||
+ !results_.navigation_results.empty() ||
+ !most_visited_urls_.empty())
provider_info->back().set_times_returned_results_in_session(1);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698