Commit 1aaac254 authored by Tommy Li's avatar Tommy Li Committed by Commit Bot

[omnibox] Fix an outdated comment about ZeroSuggest in OmniboxEditModel

This CL is a cleanup to pave the way for more work to polish the
on-focus suggestions UI.

Bug: 1013287, 996516, 963173
Change-Id: Iec5b40451b00baf440e61a7881c8168a29eedde0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1862715
Auto-Submit: Tommy Li <tommycli@chromium.org>
Reviewed-by: default avatarmanuk hovanesian <manukh@chromium.org>
Commit-Queue: Tommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706100}
parent 19c70db2
...@@ -1071,11 +1071,8 @@ void OmniboxEditModel::OnSetFocus(bool control_down) { ...@@ -1071,11 +1071,8 @@ void OmniboxEditModel::OnSetFocus(bool control_down) {
// Try to get ZeroSuggest suggestions if a page is loaded and the user has // Try to get ZeroSuggest suggestions if a page is loaded and the user has
// not been typing in the omnibox. The |user_input_in_progress_| check is // not been typing in the omnibox. The |user_input_in_progress_| check is
// used to detect the case where this function is called after right-clicking // used to prevent on-focus suggestions from appearing if the user already
// in the omnibox and selecting paste in Linux (in which case we actually get // has a navigation or search query in mind.
// the OnSetFocus() call after the process of handling the paste has kicked
// off).
// TODO(hfung): Remove this when crbug/271590 is fixed.
if (client_->CurrentPageExists() && !user_input_in_progress_) { if (client_->CurrentPageExists() && !user_input_in_progress_) {
// Send the textfield contents exactly as-is, as otherwise the verbatim // Send the textfield contents exactly as-is, as otherwise the verbatim
// match can be wrong. The full page URL is anyways in set_current_url(). // match can be wrong. The full page URL is anyways in set_current_url().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment