• David Black's avatar
    Fix crash when finalizing holding space items. · d351df35
    David Black authored
    The views for holding space items are inserted at a calculated index
    during item finalization. This requires us to determine which section of
    holding space UI these views belong to which is based on type.
    
    The previous calculation which returned whether or not two types
    belonged to the same section of holding space UI was flawed which could
    result in mis-calculation of index during item finalization.
    
    Bug: 1130625
    Change-Id: Ib2211531c3281d525dd2bf2a5eac0ae985d94755
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519057Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
    Commit-Queue: David Black <dmblack@google.com>
    Cr-Commit-Position: refs/heads/master@{#824139}
    d351df35
holding_space_tray_unittest.cc 42.4 KB