summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_contents_provider.h
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:33:50 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:33:50 +0000
commite29249dc598d32c10b5d778936a2b8fb934b6a6a (patch)
treefaad731c62376c137a8baf0dd4108510b4de281f /chrome/browser/autocomplete/history_contents_provider.h
parentc4f2712a42a03a693d04cc28a9f6d9ec79356841 (diff)
downloadchromium_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.h2
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