Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: chrome/browser/autocomplete/history_provider.h

Issue 108643003: Omnibox: Bug Fixes for Shortcuts Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, post-revert Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autocomplete/history_provider.h
diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h
index 705ab4cbf7f8b055536ad2e85a37f9395bb35078..9baba609574f4f54fad9a024f45fb7293cbd5712 100644
--- a/chrome/browser/autocomplete/history_provider.h
+++ b/chrome/browser/autocomplete/history_provider.h
@@ -28,26 +28,6 @@ class HistoryProvider : public AutocompleteProvider {
// backing data.
void DeleteMatchFromMatches(const AutocompleteMatch& match);
- // Fixes up user URL input to make it more possible to match against. Among
- // many other things, this takes care of the following:
- // * Prepending file:// to file URLs
- // * Converting drive letters in file URLs to uppercase
- // * Converting case-insensitive parts of URLs (like the scheme and domain)
- // to lowercase
- // * Convert spaces to %20s
- // Note that we don't do this in AutocompleteInput's constructor, because if
- // e.g. we convert a Unicode hostname to punycode, other providers will show
- // output that surprises the user ("Search Google for xn--6ca.com").
- // Returns false if the fixup attempt resulted in an empty string (which
- // providers generally can't do anything with).
- static bool FixupUserInput(AutocompleteInput* input);
-
- // Trims "http:" and up to two subsequent slashes from |url|. Returns the
- // number of characters that were trimmed.
- // NOTE: For a view-source: URL, this will trim from after "view-source:" and
- // return 0.
- static size_t TrimHttpPrefix(base::string16* url);
-
// Returns true if inline autocompletion should be prevented. Use this instead
// of |input.prevent_inline_autocomplete| if the input is passed through
// FixupUserInput(). This method returns true if
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_provider.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698