Chromium Code Reviews| Index: chrome/browser/autocomplete/history_provider.h |
| diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h |
| index 9baba609574f4f54fad9a024f45fb7293cbd5712..2e07dfb0c666a4767116085d81a5b78376e77994 100644 |
| --- a/chrome/browser/autocomplete/history_provider.h |
| +++ b/chrome/browser/autocomplete/history_provider.h |
| @@ -18,6 +18,11 @@ class HistoryProvider : public AutocompleteProvider { |
| public: |
| virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE; |
| + // Returns true if inline autocompletion should be prevented for URL-like |
| + // input. This method returns true if |input.prevent_inline_autocomplete()| |
|
Peter Kasting
2014/04/10 00:22:34
Nit: No bars needed
Mark P
2014/04/10 17:10:02
Done.
|
| + // is true or the input text contains trailing whitespace. |
| + static bool PreventInlineAutocomplete(const AutocompleteInput& input); |
| + |
| protected: |
| HistoryProvider(AutocompleteProviderListener* listener, |
| Profile* profile, |
| @@ -28,13 +33,6 @@ class HistoryProvider : public AutocompleteProvider { |
| // backing data. |
| void DeleteMatchFromMatches(const AutocompleteMatch& match); |
| - // 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 |
| - // |input.prevent_inline_autocomplete()| is true or the input text contains |
| - // trailing whitespace. |
| - bool PreventInlineAutocomplete(const AutocompleteInput& input); |
| - |
| // Fill and return an ACMatchClassifications structure given the |matches| |
| // to highlight. |
| static ACMatchClassifications SpansFromTermMatch( |