From 0b9d27bd2bc9d2a68b25c6a4955b0b1ab4c87e30 Mon Sep 17 00:00:00 2001 From: "msw@chromium.org" Date: Wed, 22 Dec 2010 00:51:39 +0000 Subject: Override DeleteMatch as no-op for HistoryQuickProvider BUG=14748 TEST=none Review URL: http://codereview.chromium.org/6081001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69910 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autocomplete/history_quick_provider.cc | 4 ++++ chrome/browser/autocomplete/history_quick_provider.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'chrome/browser/autocomplete') diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc index 82219b2f1..0392f1e 100644 --- a/chrome/browser/autocomplete/history_quick_provider.cc +++ b/chrome/browser/autocomplete/history_quick_provider.cc @@ -70,6 +70,10 @@ void HistoryQuickProvider::Start(const AutocompleteInput& input, } } +// HistoryQuickProvider matches are currently not deletable. +// TODO(mrossetti): Determine when a match should be deletable. +void HistoryQuickProvider::DeleteMatch(const AutocompleteMatch& match) {} + void HistoryQuickProvider::DoAutocomplete() { // Get the matching URLs from the DB. string16 term_string(WideToUTF16(autocomplete_input_.text())); diff --git a/chrome/browser/autocomplete/history_quick_provider.h b/chrome/browser/autocomplete/history_quick_provider.h index e0ed4c8..561336b 100644 --- a/chrome/browser/autocomplete/history_quick_provider.h +++ b/chrome/browser/autocomplete/history_quick_provider.h @@ -33,7 +33,10 @@ class HistoryQuickProvider : public HistoryProvider { // AutocompleteProvider. |minimal_changes| is ignored since there // is no asynch completion performed. - virtual void Start(const AutocompleteInput& input, bool minimal_changes); + virtual void Start(const AutocompleteInput& input, + bool minimal_changes) OVERRIDE; + + virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; // Performs the autocomplete matching and scoring. void DoAutocomplete(); -- cgit v1.1