• Tommy C. Li's avatar
    Omnibox UI Experiments: Steady state elisions - reelide on blur · dd5a6422
    Tommy C. Li authored
    For steady state elisions, we currently unelide when the user places
    the caret in the URL or makes a partial selection. This restores hidden
    schemes and hides the security chip.
    
    However, we don't re-elide in any circumstances currently, even if the
    user has made no edits.
    
    This CL re-elides on blur if the user has not made any edits, and
    also restores the security chip.
    
    One more note: This CL subtly changes the behavior even with steady
    state elisions off. It will revert and re-show the security chip on
    blur if the user adds and then deletes a character to the URL
    (restoring the original URL). This seems like a harmless and slightly
    beneficial change.
    
    Bug: 797354
    Change-Id: I87966e388034ed0573756e9f7985540dc4315c83
    Reviewed-on: https://chromium-review.googlesource.com/993696
    Commit-Queue: Peter Kasting <pkasting@chromium.org>
    Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#547970}
    dd5a6422
omnibox_view_views.cc 47.4 KB