summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/search_provider.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:10:17 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:10:17 +0000
commit45b2e16d81eb606ecbd102ca36dc51d87298f966 (patch)
tree1b1359211be9aede274ab6f824e88402fd433960 /chrome/browser/autocomplete/search_provider.h
parent1c0be54a98e2f801e8fa22c01aac83e36485eee4 (diff)
downloadchromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.zip
chromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.tar.gz
chromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.tar.bz2
Hoist TrimHttpPrefix() so we only have one copy, not one per provider.
Make use of this in HistoryContentsProvider so results from it get their schemes trimmed appropriately. BUG=10558 Review URL: http://codereview.chromium.org/115885 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.h')
-rw-r--r--chrome/browser/autocomplete/search_provider.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h
index 6515bc7..e36a2ef 100644
--- a/chrome/browser/autocomplete/search_provider.h
+++ b/chrome/browser/autocomplete/search_provider.h
@@ -260,11 +260,6 @@ class SearchProvider : public AutocompleteProvider,
int relevance,
bool is_keyword);
- // Trims "http:" and up to two subsequent slashes from |url|. Returns the
- // number of characters that were trimmed.
- // TODO(kochi): this is duplicate from history_autocomplete
- static size_t TrimHttpPrefix(std::wstring* url);
-
// Should we query for suggest results immediately? This is normally false,
// but may be set to true during testing.
static bool query_suggest_immediately_;