[omnibox] Prevent on-focus suggestions popping up from Alt+Tab.
Currently, when we restore focus to the omnibox by merely switching the window (Alt+Tab), we trigger on focus suggestions. This is not good. This CL does two things: 1) Fixes FocusManager so that it provides the correct |reason| for restoring the focus to Views. 2) Modifies OmniboxViewViews and OmniboxEditModel to only trigger on-focus suggestions for DIRECT focus events, and not RESTORE events. Bug: 1013287, 996516 Change-Id: I885162f29b43b052b3251f02c22c37c047a1bf64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1865621Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#708229}
Showing
Please register or sign in to comment