diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 00:10:17 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 00:10:17 +0000 |
commit | 45b2e16d81eb606ecbd102ca36dc51d87298f966 (patch) | |
tree | 1b1359211be9aede274ab6f824e88402fd433960 /chrome/browser/autocomplete/history_url_provider.h | |
parent | 1c0be54a98e2f801e8fa22c01aac83e36485eee4 (diff) | |
download | chromium_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/history_url_provider.h')
-rw-r--r-- | chrome/browser/autocomplete/history_url_provider.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/history_url_provider.h b/chrome/browser/autocomplete/history_url_provider.h index bdea469..2f95594 100644 --- a/chrome/browser/autocomplete/history_url_provider.h +++ b/chrome/browser/autocomplete/history_url_provider.h @@ -255,10 +255,6 @@ class HistoryURLProvider : public AutocompleteProvider { // output that surprises the user ("Search Google for xn--6ca.com"). static std::wstring FixupUserInput(const AutocompleteInput& input); - // Trims "http:" and up to two subsequent slashes from |url|. Returns the - // number of characters that were trimmed. - static size_t TrimHttpPrefix(std::wstring* url); - // Returns true if |url| is just a host (e.g. "http://www.google.com/") and // not some other subpage (e.g. "http://www.google.com/foo.html"). static bool IsHostOnly(const GURL& url); |