diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 17:33:50 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 17:33:50 +0000 |
commit | e29249dc598d32c10b5d778936a2b8fb934b6a6a (patch) | |
tree | faad731c62376c137a8baf0dd4108510b4de281f /chrome/browser/autocomplete/history_contents_provider.h | |
parent | c4f2712a42a03a693d04cc28a9f6d9ec79356841 (diff) | |
download | chromium_src-e29249dc598d32c10b5d778936a2b8fb934b6a6a.zip chromium_src-e29249dc598d32c10b5d778936a2b8fb934b6a6a.tar.gz chromium_src-e29249dc598d32c10b5d778936a2b8fb934b6a6a.tar.bz2 |
Clear AutocompleteProvider caches in Stop().
Some providers cache their results but do not clear their caches when a new
query starts. This leads to a flicker of old, sometimes irrelevant results when
starting a new omnibox query. This CL informs the providers when autocomplete
is stopped, allowing them to drop their caches.
BUG=crbug.com/137197
TEST=See test case in bug. Old search suggestions should not flicker when typing new queries into the omnibox.
Review URL: https://chromiumcodereview.appspot.com/10694162
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/history_contents_provider.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.h b/chrome/browser/autocomplete/history_contents_provider.h index 4e8d096..b3667d1 100644 --- a/chrome/browser/autocomplete/history_contents_provider.h +++ b/chrome/browser/autocomplete/history_contents_provider.h @@ -34,7 +34,7 @@ class HistoryContentsProvider : public HistoryProvider { // done SetResults is invoked. virtual void Start(const AutocompleteInput& input, bool minimal_changes) OVERRIDE; - virtual void Stop() OVERRIDE; + virtual void Stop(bool clear_cached_results) OVERRIDE; private: // When processing the results from the history query, this structure points |