• Tommy C. Li's avatar
    Omnibox UI Experiments: Steady State Elisions - Fix Cut to clipboard · b84f1e35
    Tommy C. Li authored
    This CL improves the after-Cut text processing to reliably handle the
    Cut case when Steady State Elisions is on.
    
    Previously, the logic relied on IsSelectAll, which doesn't work
    correctly in the Cut case. Now it just compares the contents of the
    paste buffer vs. the current page's display URL.
    
    This also has the side benefit of simplifying the API.
    
    It also updates a test to explicitly check a Steady State Elisions
    case.
    
    Bug: 838159, 797354
    Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
    Change-Id: Iae3ee431051e2f7bbbf63a0b87e82b7f363213aa
    Reviewed-on: https://chromium-review.googlesource.com/1040912Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
    Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
    Commit-Queue: Tommy Li <tommycli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#556113}
    b84f1e35
omnibox_edit_model.h 26.1 KB