| Index: components/omnibox/browser/omnibox_edit_model.h
|
| diff --git a/components/omnibox/browser/omnibox_edit_model.h b/components/omnibox/browser/omnibox_edit_model.h
|
| index a15df90669a9cbdbb7ef6b1b61d6af3a9dde208d..261f137d1ba15369f2a38448a62cc670fe2ec576 100644
|
| --- a/components/omnibox/browser/omnibox_edit_model.h
|
| +++ b/components/omnibox/browser/omnibox_edit_model.h
|
| @@ -177,7 +177,8 @@ class OmniboxEditModel {
|
| // no user input in progress).
|
| void Revert();
|
|
|
| - // Directs the popup to start autocomplete.
|
| + // Directs the popup to start autocomplete. Makes use of the |view_| text and
|
| + // selection, so make sure to set those before calling StartAutocomplete().
|
| void StartAutocomplete(bool has_selected_text,
|
| bool prevent_inline_autocomplete);
|
|
|
| @@ -244,7 +245,9 @@ class OmniboxEditModel {
|
| bool AcceptKeyword(KeywordModeEntryMethod entry_method);
|
|
|
| // Sets the current keyword to that of the user's default search provider and
|
| - // updates the view so the user sees the keyword chip in the omnibox.
|
| + // updates the view so the user sees the keyword chip in the omnibox. Adjusts
|
| + // user_text_ and the selection based on the display text and the keyword
|
| + // entry method.
|
| void EnterKeywordModeForDefaultSearchProvider(
|
| KeywordModeEntryMethod entry_method);
|
|
|
|
|