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

Unified Diff: components/omnibox/autocomplete_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
« no previous file with comments | « components/omnibox/autocomplete_provider.h ('k') | components/omnibox/keyword_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/autocomplete_provider.cc
diff --git a/components/omnibox/autocomplete_provider.cc b/components/omnibox/autocomplete_provider.cc
index 9238eab557dba1220d9bd363f40692906943081a..7db750a8121e49e651b751ac3d19b1dea260e6dc 100644
--- a/components/omnibox/autocomplete_provider.cc
+++ b/components/omnibox/autocomplete_provider.cc
@@ -45,7 +45,8 @@ const char* AutocompleteProvider::TypeToString(Type type) {
}
}
-void AutocompleteProvider::Stop(bool clear_cached_results) {
+void AutocompleteProvider::Stop(bool clear_cached_results,
+ bool due_to_user_inactivity) {
done_ = true;
}
@@ -90,7 +91,7 @@ void AutocompleteProvider::ResetSession() {
}
AutocompleteProvider::~AutocompleteProvider() {
- Stop(false);
+ Stop(false, false);
}
// static
« no previous file with comments | « components/omnibox/autocomplete_provider.h ('k') | components/omnibox/keyword_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698