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

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

Issue 985503002: Omnibox - Make Omnibox Extensions Ignore Stop() Calls Due to User Idleness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make unit tests compile 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
Index: chrome/browser/autocomplete/history_url_provider.cc
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index ae6fba03d380efa3ec89ebeb2f55e6e31253874b..ccfce94352b2327776192908330bba6e04b76e8d 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -493,7 +493,7 @@ void HistoryURLProvider::Start(const AutocompleteInput& input,
// re-run the query from scratch and ignore |minimal_changes|.
// Cancel any in-progress query.
- Stop(false);
+ Stop(false, false);
matches_.clear();
@@ -584,7 +584,8 @@ void HistoryURLProvider::Start(const AutocompleteInput& input,
}
}
-void HistoryURLProvider::Stop(bool clear_cached_results) {
+void HistoryURLProvider::Stop(bool clear_cached_results,
+ bool due_to_user_inactivity) {
done_ = true;
if (params_)
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.h ('k') | chrome/browser/autocomplete/zero_suggest_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698