| Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| index 9794fae72cd2c540812bea37d1fb9089ca0a755a..e606d4c6603b704140a909b845e50d37aae9870e 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| +++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| @@ -707,6 +707,14 @@ void OmniboxEditModel::OpenMatch(const AutocompleteMatch& match,
|
| base::TimeTicks::Now() - time_user_first_modified_omnibox_;
|
| const GURL destination_url = autocomplete_controller_->
|
| GetDestinationURL(match, query_formulation_time);
|
| +
|
| + // If running with instant, notify the instant page that a navigation
|
| + // is about to take place. Note that only the user-entered content, not the
|
| + // full match should be sent down to avoid leaking autocompleted content.
|
| + InstantController* instant = controller_->GetInstant();
|
| + if (instant)
|
| + instant->OnNavigate(autocomplete_controller_->input().text());
|
| +
|
| // This calls RevertAll again.
|
| base::AutoReset<bool> tmp(&in_revert_, true);
|
| controller_->OnAutocompleteAccept(destination_url, disposition,
|
|
|